mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-07-10 17:29:18 -04:00
Only request the server_add js if the user is an admin
This commit is contained in:
@@ -19,7 +19,9 @@
|
||||
*/
|
||||
class server_add_theme_Core {
|
||||
static function head($theme) {
|
||||
return html::script("modules/server_add/js/server_add.js") . "\n";;
|
||||
if (user::active()->admin) {
|
||||
return html::script("modules/server_add/js/server_add.js");
|
||||
}
|
||||
}
|
||||
|
||||
static function admin_head($theme) {
|
||||
|
||||
Reference in New Issue
Block a user