示例#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
 /**
  * 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);
 }