Only request the server_add js if the user is an admin

This commit is contained in:
Bharat Mediratta
2009-06-04 12:21:51 -07:00
parent e1ce3196f4
commit 7e5a363ffc
2 changed files with 3 additions and 2 deletions

View File

@@ -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) {