Esempio 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);
 }
Esempio 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);
 }
Esempio 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);
 }
Esempio 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);
 }
Esempio 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);
 }
Esempio 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);
 }
Esempio 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);
 }
Esempio 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);
 }
Esempio 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);
 }