Skip to content

Commit

Permalink
Don't generate a certificate to invited and visitor roles - refs BT#9070
Browse files Browse the repository at this point in the history
  • Loading branch information
AngelFQC committed Feb 2, 2015
1 parent faa8336 commit 7a2bd01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main/gradebook/index.php
Expand Up @@ -747,7 +747,7 @@ function confirmation() {

if ($show_message == '') {
// Student
if (!api_is_allowed_to_edit()) {
if (!api_is_allowed_to_edit() && !apiIsExcludedUserType()) {
$certificate = Category::register_user_certificate(
$category_id,
$stud_id
Expand Down

0 comments on commit 7a2bd01

Please sign in to comment.