diff options
| author | George Halkiadakis <gchalkiadakis@sklavenitis.co.gr> | 2023-04-26 04:43:12 +0300 |
|---|---|---|
| committer | George Halkiadakis <gchalkiadakis@sklavenitis.co.gr> | 2023-04-26 04:43:12 +0300 |
| commit | 9cb35f2bf2127cc8ac077aae17514a57e576217d (patch) | |
| tree | bf809e73dded8e481d0a2e16c488831052016313 /public/app/controllers/cms/Course.php | |
| parent | b594effb847b86fc6b1dae49d7948c46bba35e58 (diff) | |
| download | classroom-9cb35f2bf2127cc8ac077aae17514a57e576217d.tar.gz classroom-9cb35f2bf2127cc8ac077aae17514a57e576217d.tar.bz2 classroom-9cb35f2bf2127cc8ac077aae17514a57e576217d.zip | |
alfa.2 version; seceral optimizations; added support for mail-relay
Diffstat (limited to 'public/app/controllers/cms/Course.php')
| -rw-r--r-- | public/app/controllers/cms/Course.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/public/app/controllers/cms/Course.php b/public/app/controllers/cms/Course.php index 0edc832..a1de9c1 100644 --- a/public/app/controllers/cms/Course.php +++ b/public/app/controllers/cms/Course.php @@ -31,7 +31,7 @@ class Course { * * @return true|false */ - private static function is_admin_or_permited( $privilege_id) + private static function is_admin_or_permited( $privilege_id ) { return ( Auth::in_admin_group() @@ -56,7 +56,7 @@ class Course { $file = self::get_file_attributes($file_path); // if user is authorized - if (is_admin_or_permited($file['privilege_id'])) { + if (self::is_admin_or_permited($file['privilege_id'])) { $media_type = Registry::get('REQUEST')->GET['type']; // get media-type $real_path = MEDIA_STORAGE_ROOT . $file_path; // construct real path |
