Changeset View
Changeset View
Standalone View
Standalone View
branches/5.2.x/core/kernel/application.php
Show First 20 Lines • Show All 2555 Lines • ▼ Show 20 Line(s) | |||||
*/ | */ | ||||
public function LoggedIn() | public function LoggedIn() | ||||
{ | { | ||||
// no session during expiration process | // no session during expiration process | ||||
return is_null($this->Session) ? false : $this->Session->LoggedIn(); | return is_null($this->Session) ? false : $this->Session->LoggedIn(); | ||||
} | } | ||||
/** | /** | ||||
* Determines if access permissions should not be checked. | |||||
* | |||||
* @param integer|null $user_id User ID. | |||||
* | |||||
* @return boolean | |||||
*/ | |||||
public function permissionCheckingDisabled($user_id = null) | |||||
{ | |||||
if ( !isset($user_id) ) { | |||||
$user_id = $this->RecallVar('user_id'); | |||||
} | |||||
return $user_id == USER_ROOT; | |||||
} | |||||
/** | |||||
* Check current user permissions based on it's group permissions in specified category | * Check current user permissions based on it's group permissions in specified category | ||||
* | * | ||||
* @param string $name permission name | * @param string $name permission name | ||||
* @param int $cat_id category id, current used if not specified | * @param int $cat_id category id, current used if not specified | ||||
* @param int $type permission type {1 - system, 0 - per category} | * @param int $type permission type {1 - system, 0 - per category} | ||||
* @return int | * @return int | ||||
* @access public | * @access public | ||||
*/ | */ | ||||
▲ Show 20 Lines • Show All 529 Lines • Show Last 20 Lines |