You are here

function _quotes_user_access_check in Quotes 7

Same name and namespace in other branches
  1. 6 quotes.user.inc \_quotes_user_access_check()

Checks user access permissions.

1 call to _quotes_user_access_check()
quotes_user_form in ./quotes.user.inc
Display quotes the user has created with edit/delete options.

File

./quotes.user.inc, line 19
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);
}