You are here

function _quotes_user_access_check in Quotes 6

Same name and namespace in other branches
  1. 7 quotes.user.inc \_quotes_user_access_check()
1 call to _quotes_user_access_check()
quotes_user_form in ./quotes.user.inc

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);
}