You are here

function _quotes_user_form_access in Quotes 5

1 call to _quotes_user_form_access()
quotes_user_form in ./quotes.user.inc

File

./quotes.user.inc, line 11
Displays a Drupal page containing quotes submitted by a given user.

Code

function _quotes_user_form_access($user, $account) {
  if (user_access('edit own quotes', $user) && $account->uid == $user->uid) {
    return TRUE;
  }
  return user_access('administer quotes', $user);
}