function opigno_certificate_app_access_certificate in Opigno Certificate App 7
File
- ./
opigno_certificate_app.module, line 54
Code
function opigno_certificate_app_access_certificate($node, $account) {
global $user;
if ($user->uid != $account->uid && !user_access('view all user certificates')) {
drupal_set_message(t("You do not have access to viewing others certificates"));
return FALSE;
}
if (opigno_certificate_app_user_passed($node->nid, $account->uid)) {
return TRUE;
}
return FALSE;
}