diff options
author | root <root@adnab.me> | 2014-01-31 19:08:03 +0100 |
---|---|---|
committer | root <root@adnab.me> | 2014-01-31 19:08:03 +0100 |
commit | 77048675abf5fad43e8b5371c35e1c86b3be59c2 (patch) | |
tree | 2d77c78988a4a354af3653481785aeea00429e5e /lib/conf/apps.php | |
parent | 2a274c011d177f5ad1e863301b8b88c560a3829d (diff) | |
download | Bits-77048675abf5fad43e8b5371c35e1c86b3be59c2.tar.gz Bits-77048675abf5fad43e8b5371c35e1c86b3be59c2.zip |
Privilege changesadnab.me-site
Diffstat (limited to 'lib/conf/apps.php')
-rw-r--r-- | lib/conf/apps.php | 63 |
1 files changed, 34 insertions, 29 deletions
diff --git a/lib/conf/apps.php b/lib/conf/apps.php index 524da45..e0c1dfe 100644 --- a/lib/conf/apps.php +++ b/lib/conf/apps.php @@ -2,53 +2,58 @@ $homepage = "view-static-home"; +$priv_guest = 0; +$priv_user = 1; +$priv_auth = 2; +$priv_mod = 3; +$priv_admin = 4; + $apps = array( "static" => array( - "view" => 0, + "view" => $priv_guest, ), // File upload application "file" => array( - "index" => 1, - "delete" => 1, - "editinfo" => 1, - "upload" => 0, - "folder" => 0, - "newfld" => 1, - "editfld" => 1, - "delfld" => 1, + "index" => $priv_guest, + "delete" => $priv_user, + "editinfo" => $priv_user, + "upload" => $priv_user, + "folder" => $priv_guest, + "newfld" => $priv_user, + "editfld" => $priv_user, + "delfld" => $priv_user, ), // Account application "account" => array( - "new" => 0, - "list" => 0, + "new" => $priv_guest, + "list" => $priv_guest, ), // Notebook application "notes" => array( - //"index" => 0, - "user" => 0, - "view" => 0, - "new" => 1, - "edit" => 1, - "delete" => 1, - "move" => 1, - "source" => 0, + "user" => $priv_guest, + "view" => $priv_guest, + "new" => $priv_user, + "edit" => $priv_user, + "delete" => $priv_user, + "move" => $priv_user, + "source" => $priv_guest, ), // Blogging application "blog" => array( - "index" => 0, - "view" => 0, - "drafts" => 2, - "publish" => 2, - "post" => 2, - "edit" => 2, - "delete" => 2, - "comment" => 1, - "edcom" => 1, - "delcom" => 2, + "index" => $priv_guest, + "view" => $priv_guest, + "drafts" => $priv_auth, + "publish" => $priv_auth, + "post" => $priv_auth, + "edit" => $priv_auth, + "delete" => $priv_auth, + "comment" => $priv_user, + "edcom" => $priv_user, + "delcom" => $priv_mod, ), |