function opigno_quiz_app_take_access in Opigno Quiz App 7
Access callback: check if user has access to take quizzes inside the course.
Parameters
stdClass $node:
stdClass $account = NULL:
Return value
bool
File
- ./
opigno_quiz_app.module, line 752 - Module file. Defines module hooks.
Code
function opigno_quiz_app_take_access($node, $account = NULL) {
if (!isset($account)) {
global $user;
$account = clone $user;
}
return og_user_access('node', $node->nid, 'access quiz', $account);
}