function support_access_user_tickets in Support Ticketing System 6
Same name and namespace in other branches
- 7 support.module \support_access_user_tickets()
Menu callback.
2 string references to 'support_access_user_tickets'
- support_menu in ./
support.module - Implementation of hook_menu().
- support_overview_menu in support_overview/
support_overview.module - Implementation of hook_menu().
File
- ./
support.module, line 629 - support.module
Code
function support_access_user_tickets($account = array()) {
global $user;
if (user_access('administer support') || user_access('edit any ticket') || user_access('create tickets') && $account->uid == $user->uid) {
return TRUE;
}
return FALSE;
}