You are here

function skinr_ui_access in Skinr 7.2

Same name and namespace in other branches
  1. 8.2 skinr_ui/skinr_ui.module \skinr_ui_access()

Determine whether the user has a given privilege.

Parameters

$string: The permission, such as "administer nodes", being checked for.

$account: (optional) The account to check, if not given use currently logged in user.

Return value

Boolean TRUE if the current user has the requested permission.

See also

user_access()

1 call to skinr_ui_access()
skinr_ui_form in ./skinr_ui.edit.inc
Form builder for the skins configuration form.

File

./skinr_ui.module, line 53
Handles Skinr UI functionality allowing users to apply skins to their site.

Code

function skinr_ui_access($string, $account = NULL) {
  return user_access($string, $account) || user_access('administer skinr', $account);
}