fix setting role

This commit is contained in:
Uwe Steinmann 2019-03-11 18:27:20 +01:00
parent 00d6b7e150
commit 83e8f900e5

View File

@ -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;