Permalink
Browse files

corrected bug with teacher rights

  • Loading branch information...
1 parent d0b4e82 commit 2f1dff3561a6068e41da1461a802284729597920 urs_hunkler committed Jul 21, 2006
Showing with 1 addition and 1 deletion.
  1. +1 −1 theme/chameleon/ui/css.php
@@ -11,7 +11,7 @@
$chameleon_id = isset($_GET['id']) ? (int) $_GET['id'] : 0;
if ($chameleon_id != 0 && !empty($CFG->allowcoursethemes) && !empty($THEME->chameleonteachereditenabled)) {
- if (!isteacher($chameleon_id)) {
+ if (!isteacheredit($chameleon_id)) {
die('CHAMELEON_ERROR Either you are not logged in or you are not allowed to edit this theme');
}
} else if (!isadmin()) {

0 comments on commit 2f1dff3

Please sign in to comment.