You are here

function faq_ask_user_access_or in FAQ_Ask 7

Same name and namespace in other branches
  1. 6.2 faq_ask.module \faq_ask_user_access_or()
  2. 6 faq_ask.module \faq_ask_user_access_or()

Determines whether the current user has one of the given permissions.

Parameters

string $string1: first permission string

string $string2: second permission string

Return value

boolean TRUE if user has one of the given permissions, FALSE otherwise

1 string reference to 'faq_ask_user_access_or'
faq_ask_menu in ./faq_ask.module
Implements hook_menu().

File

./faq_ask.module, line 106
This module is an add-on to the FAQ module that allows users with the 'ask question' permission to create a question which will be queued for an 'expert' to answer.

Code

function faq_ask_user_access_or($string1, $string2) {
  return user_access($string1) || user_access($string2);
}