You are here

function flag_access in Flag 5

Same name and namespace in other branches
  1. 6 flag.module \flag_access()

Access checking to check an account for flagging ability.

See documentation for $flag->user_access().

2 calls to flag_access()
flag_field_handler_ops in includes/flag.views.inc
Handler that prints the proper operations for a flag.
flag_get_flags in ./flag.module
List all flags available.

File

./flag.module, line 108
The Flag module.

Code

function flag_access($flag, $account = NULL) {
  return $flag
    ->user_access($account);
}