function _quotes_user_access_check in Quotes 6
Same name and namespace in other branches
- 7 quotes.user.inc \_quotes_user_access_check()
1 call to _quotes_user_access_check()
File
- ./
quotes.user.inc, line 17 - Displays a Drupal page containing quotes submitted by a given user.
Code
function _quotes_user_access_check($user, $account) {
if (user_access('edit own quotes', $user) && $account->uid == $user->uid) {
return TRUE;
}
return user_access('administer quotes', $user);
}