function _oauth_common_user_access in OAuth 1.0 7.4
Same name and namespace in other branches
- 6.3 oauth_common.module \_oauth_common_user_access()
- 7.3 oauth_common.module \_oauth_common_user_access()
Access callback function used by several menu items.
Parameters
stdClass $user: A user object.
string $permission: The permission that is needed in addition to edit access on the $user.
1 string reference to '_oauth_common_user_access'
- oauth_common_providerui_menu in ./
oauth_common_providerui.module - Implements hook_menu().
File
- ./
oauth_common.module, line 324
Code
function _oauth_common_user_access($user, $permission = NULL) {
return user_edit_access($user) && (empty($permission) || user_access($permission));
}