From 77048675abf5fad43e8b5371c35e1c86b3be59c2 Mon Sep 17 00:00:00 2001 From: root Date: Fri, 31 Jan 2014 19:08:03 +0100 Subject: Privilege changes --- lib/conf/apps.php | 63 ++++++++++++++++++++++++++++++------------------------- 1 file changed, 34 insertions(+), 29 deletions(-) (limited to 'lib/conf') 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, ), -- cgit v1.2.3