Skip to content
Browse files

Only admins can execute me !!

  • Loading branch information...
1 parent e51de1e commit 95f6c01b0360106abdeb585e09ba07ab269a320e stronk7 committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 backup/backup.php
View
2 backup/backup.php
@@ -25,8 +25,8 @@
require_login();
//Check admin
- //Check admin
if (!isadmin()) {
+ error("You need to be an admin user to use this page.", "$CFG->wwwroot/login/index.php");
}
//Check site

0 comments on commit 95f6c01

Please sign in to comment.
Something went wrong with that request. Please try again.