コード例 #1
0
 /**
  * Test whenever the current user has "WRITE" access to the specified id
  *
  * @param string $resourceId
  * @return boolean
  */
 protected function hasWriteAccess($resourceId)
 {
     $user = common_session_SessionManager::getSession()->getUser();
     return DataAccessControl::hasPrivileges($user, array($resourceId => 'WRITE'));
 }