function space_user::access_admin in Spaces 6.3
Same name and namespace in other branches
- 7.3 spaces_user/plugins/space_user.inc \space_user::access_admin()
- 7 spaces_user/plugins/space_user.inc \space_user::access_admin()
Override of access_admin().
Overrides space_type::access_admin
File
- spaces_user/
plugins/ space_user.inc, line 44
Class
- space_user
- User integration for Spaces.
Code
function access_admin($account = NULL) {
global $user;
$account = isset($account) ? $account : $user;
$access = $account->uid == $this->id && user_access('configure own user space');
return $access || parent::access_admin($account);
}