summaryrefslogtreecommitdiffstats
path: root/app/model/common.mod.php
diff options
context:
space:
mode:
authorMalf Furious <m@lfurio.us>2016-03-26 17:18:08 -0400
committerMalf Furious <m@lfurio.us>2016-03-27 20:16:32 -0400
commit99ec6644fc93ee4d6bd8569148de6a03d64f69cb (patch)
tree68ac1f1e206d70887a2d445c20b0bb81746c9c71 /app/model/common.mod.php
parent333351cbd18d12520fb0eae44e9805cb3b10e038 (diff)
downloadscrott-99ec6644fc93ee4d6bd8569148de6a03d64f69cb.tar.gz
scrott-99ec6644fc93ee4d6bd8569148de6a03d64f69cb.zip
Add collapsable panel for editing each user's settings to admin setting tab
Also, added relevant initialization code to common model
Diffstat (limited to 'app/model/common.mod.php')
-rw-r--r--app/model/common.mod.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/app/model/common.mod.php b/app/model/common.mod.php
index 8d1ea7e..1398598 100644
--- a/app/model/common.mod.php
+++ b/app/model/common.mod.php
@@ -3,6 +3,7 @@
require_once "model/master.mod.php";
require_once "class/form.class.php";
require_once "class/setting.class.php";
+require_once "class/user.class.php";
class CommonModel extends MasterModel
{
@@ -24,6 +25,10 @@ class CommonModel extends MasterModel
if (Setting::allowPublicSignup())
$this->common_settingAdminAllowPublicSignupChecked = "checked";
+
+ /* Admin all-users settings tab */
+ $userTbl = new User();
+ $this->common_settingAllUsers = $userTbl->getAllUsers_orderByAdminByName();
}
/*