예제 #1
0
 public function UpdateField($fieldAlias, $newValue, &$pkVal = NULL)
 {
     if ($fieldAlias == 'role' && isset($_SESSION['current_user']) && $pkVal == $_SESSION['current_user']) {
         uNotices::AddNotice('You cannot edit your own role', NOTICE_TYPE_ERROR);
         return;
     }
     parent::UpdateField($fieldAlias, $newValue, $pkVal);
 }