diff options
author | Luke Shumaker <LukeShu@sbcglobal.net> | 2011-10-05 00:18:51 -0400 |
---|---|---|
committer | Luke Shumaker <LukeShu@sbcglobal.net> | 2011-10-05 00:18:51 -0400 |
commit | 2a71bacfc5536279bbc5e238fb6a07c03e85d12d (patch) | |
tree | 77d686246a93904a7d2327bc2247dc2b95158f8d /src/models/Auth.class.php | |
parent | f618eae020122914c1c349ece78cb755576b4105 (diff) |
Edit individual.html to allow showing multiple users at once. Add
a hack to the Users.class controller to show all users for the "all"
username. Mark "all" as forbiddent in the Auth.class model.
Diffstat (limited to 'src/models/Auth.class.php')
-rw-r--r-- | src/models/Auth.class.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/models/Auth.class.php b/src/models/Auth.class.php index 25570bf..b51aef9 100644 --- a/src/models/Auth.class.php +++ b/src/models/Auth.class.php @@ -26,12 +26,12 @@ class Auth { // Current rules: // * Not in "$illegal_names" // * Does not contain '.' - // * Less <256 characters - $illegal_names = array('', 'new', 'index'); + // * Fewer than 256 characters + $illegal_names = array('', 'new', 'index', 'all'); return true && (!in_array($name, $illegal_names)) && (strpos($name,'.')===false) - && (strlen($name)<=256); + && (strlen($name)<256); } protected $db = null; |