You are here

function _support_validate_assigned_user in Support Ticketing System 7

Same name and namespace in other branches
  1. 6 support.module \_support_validate_assigned_user()

Be sure a valid user is being assigned to a ticket.

3 calls to _support_validate_assigned_user()
support_comment_validate in ./support.module
Implementation of hook_comment_validate().
support_node_validate in ./support.module
Implementation of hook_node_validate().
_support_status_form_attach in ./support.module
Generate form for adding update to ticket. Enhances comment_form adding a ticket status bar.

File

./support.module, line 529
support.module

Code

function _support_validate_assigned_user($uid, $client) {
  $account = user_load($uid);
  return user_access("access {$client} tickets", $account) || user_access('administer support', $account);
}