예제 #1
0
 /**
  * Returns whether the user is allowed to perform this task
  *
  * @param One_Scheme $scheme
  * @param mixed $id
  * @return boolean
  */
 public function authorize($scheme)
 {
     return One_Permission::authorize('show', $scheme, NULL);
 }
예제 #2
0
파일: list.php 프로젝트: pdelbar/onethree
 /**
  * Returns whether the user is allowed to perform this task
  *
  * @return boolean
  */
 public function authorize()
 {
     return One_Permission::authorize('list', $this->scheme, 0);
 }
예제 #3
0
파일: detail.php 프로젝트: pdelbar/onethree
 /**
  * Returns whether the user is allowed to perform this task
  *
  * @param One_Scheme $scheme
  * @param mixed $id
  * @return boolean
  */
 public function authorize($scheme, $id)
 {
     return One_Permission::authorize('detail', $scheme, $id);
 }
예제 #4
0
 /**
  * Returns whether the user is allowed to perform this task
  *
  * @param One_Scheme $scheme
  * @param mixed $id
  * @return boolean
  */
 public function authorize($scheme, $id)
 {
     return One_Permission::authorize('search', $scheme->getName(), $id);
 }
예제 #5
0
 /**
  * Returns whether the user is allowed to perform this task
  *
  * @param One_Scheme $scheme
  * @param mixed $id
  * @return boolean
  */
 public function authorize($scheme)
 {
     return One_Permission::authorize('calendar', $scheme, null);
 }
예제 #6
0
 /**
  * Returns whether the user is allowed to perform this task
  *
  * @return boolean
  */
 public function authorize()
 {
     return true;
     return One_Permission::authorize('jqexport', $this->scheme, 0);
 }
예제 #7
0
 /**
  * Returns whether the user is allowed to perform this task
  *
  * @param One_Scheme $scheme
  * @param mixed $id
  * @return boolean
  */
 public function authorize($scheme, $id)
 {
     return One_Permission::authorize('remove', $scheme, $id);
 }
예제 #8
0
 /**
  * Returns whether the user is allowed to perform this task
  *
  * @param OneScheme $scheme
  * @param mixed $id
  * @return boolean
  */
 public function authorize($scheme)
 {
     return One_Permission::authorize('ajaxinsert', $scheme, $id);
 }
예제 #9
0
 /**
  * Returns whether the user is allowed to perform this task
  *
  * @param OneScheme $scheme
  * @param mixed $id
  * @return boolean
  */
 public function authorize($scheme, $id)
 {
     return One_Permission::authorize('ajaxupdate', $scheme, $id);
 }