canReadITILItem() public method

can read the parent ITIL Object ?
public canReadITILItem ( ) : boolean
return boolean
Beispiel #1
0
 /**
  * Is the current user have right to update the current task ?
  *
  * @return boolean
  **/
 function canUpdateItem()
 {
     if (!parent::canReadITILItem()) {
         return false;
     }
     if ($this->fields["users_id"] != Session::getLoginUserID() && !Session::haveRight('problem', UPDATE)) {
         return false;
     }
     return true;
 }
 /**
  * Is the current user have right to update the current task ?
  *
  * @return boolean
  **/
 function canUpdateItem()
 {
     if (!parent::canReadITILItem()) {
         return false;
     }
     if ($this->fields["users_id"] != Session::getLoginUserID() && !Session::haveRight(self::$rightname, self::UPDATEALL)) {
         return false;
     }
     return true;
 }
Beispiel #3
0
 /**
  * Is the current user have right to update the current task ?
  *
  * @return boolean
  **/
 function canUpdateItem()
 {
     if (!parent::canReadITILItem()) {
         return false;
     }
     if ($this->fields["users_id"] != Session::getLoginUserID() && !Session::haveRight('edit_all_change', 1)) {
         return false;
     }
     return true;
 }