diff options
| author | Malf Furious <m@lfurio.us> | 2016-01-28 19:38:28 -0500 | 
|---|---|---|
| committer | Malf Furious <m@lfurio.us> | 2016-01-28 19:38:28 -0500 | 
| commit | 635ceb4808624ad6676d43e83c1ff5a7d4341d36 (patch) | |
| tree | cef9da19d9f6e6481cbe84c4ca50a4d0604d5e5f | |
| parent | 67fb3eeb6d788b6f58d589757285a0e72a5ea3aa (diff) | |
| download | scrott-635ceb4808624ad6676d43e83c1ff5a7d4341d36.tar.gz scrott-635ceb4808624ad6676d43e83c1ff5a7d4341d36.zip  | |
Add admin field to user table
User accounts now have a field to denote whether they are site administrators.  The first account created during app initial configuration is an admin automatically.
Diffstat (limited to '')
| -rw-r--r-- | app/class/user.class.php | 1 | ||||
| -rw-r--r-- | schema.sql | 1 | 
2 files changed, 2 insertions, 0 deletions
diff --git a/app/class/user.class.php b/app/class/user.class.php index 6004dc9..9a87b01 100644 --- a/app/class/user.class.php +++ b/app/class/user.class.php @@ -17,6 +17,7 @@ class User extends Object              "key",              "salt",              "alias", +            "admin",              "email",              "emailConf",              "emailConfKey" @@ -95,6 +95,7 @@ CREATE TABLE `user` (      `key`    varchar(64)          NOT NULL,      `salt`   varchar(64)          NOT NULL,      `alias`  varchar(50)      DEFAULT NULL, +    `admin`     int(10) unsigned  NOT NULL DEFAULT 0,      `email`  varchar(50)      DEFAULT NULL,      `emailConf` int(10) unsigned  NOT NULL DEFAULT 0,      `emailConfKey` varchar(64)    NOT NULL,  | 
