mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-03-12 00:45:34 +00:00
fix setting role
This commit is contained in:
parent
00d6b7e150
commit
83e8f900e5
|
@ -713,7 +713,6 @@ class SeedDMS_Core_User { /* {{{ */
|
|||
*/
|
||||
function setRole($newrole) { /* {{{ */
|
||||
$db = $this->_dms->getDB();
|
||||
$newrole = intval($newrole);
|
||||
|
||||
if(is_object($newrole))
|
||||
$queryStr = "UPDATE `tblUsers` SET `role` = " . $newrole->getID() . " WHERE `id` = " . $this->_id;
|
||||
|
|
Loading…
Reference in New Issue
Block a user