Exemplo n.º 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);
 }
Exemplo n.º 2
0
 /**
  * Returns whether the user is allowed to perform this task
  *
  * @return boolean
  */
 public function authorize()
 {
     return One_Permission::authorize('list', $this->scheme, 0);
 }
Exemplo n.º 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);
 }
Exemplo n.º 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);
 }
Exemplo n.º 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);
 }
Exemplo n.º 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);
 }
Exemplo n.º 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);
 }
Exemplo n.º 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);
 }
Exemplo n.º 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);
 }