From: Gabriel Wicke Date: Thu, 29 Apr 2004 10:58:19 +0000 (+0000) Subject: allow sysops to edit user styles/js X-Git-Tag: 1.3.0beta1~196 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/exercices/modifier.php?a=commitdiff_plain;h=4c9d4bfd2cbda4c9d65a9fe2b89520999560e8f7;p=lhc%2Fweb%2Fwiklou.git allow sysops to edit user styles/js --- diff --git a/includes/Title.php b/includes/Title.php index 2e36078229..cd55e7420e 100644 --- a/includes/Title.php +++ b/includes/Title.php @@ -491,7 +491,7 @@ class Title { # XXX: this might be better using restrictions if( Namespace::getUser() == $this->mNamespace and preg_match("/\\.(css|js)$/", $this->mTextform ) - and !$wgUser->isDeveloper() + and !$wgUser->isSysop() and !preg_match("/^".$wgUser->getName()."/", $this->mTextform) ) { return false; }