Skip to content
Permalink
Browse files

Replace use of global var with api_is_allowed_in_course()

  • Loading branch information...
jmontoyaa committed Aug 11, 2017
1 parent 137f8df commit f66f1bb8680b52cd6641e8bc2cb4a8b2c049bd76
Showing with 1 addition and 1 deletion.
  1. +1 −1 main/blog/blog_admin.php
@@ -19,7 +19,7 @@
api_protect_course_script(true);
// ONLY USERS REGISTERED IN THE COURSE
if ((!api_is_allowed_in_course() || !$is_courseMember) && !api_is_allowed_to_edit()) {
if ((!api_is_allowed_in_course() || !api_is_allowed_in_course()) && !api_is_allowed_to_edit()) {
api_not_allowed(true); //print headers/footers
}

0 comments on commit f66f1bb

Please sign in to comment.
You can’t perform that action at this time.