diff options
author | Malf Furious <m@lfurio.us> | 2016-02-02 20:31:29 -0500 |
---|---|---|
committer | Malf Furious <m@lfurio.us> | 2016-02-02 20:31:29 -0500 |
commit | 4496b56e3392ba8183c0e1764557d51a8633e7ca (patch) | |
tree | 40d59b6c8e64751c3058e49eec7d0744b14e8e9a /app/class/setting.class.php | |
parent | 7d484a70f73bd679e0dcf18d23d8124d8edf8f63 (diff) | |
download | scrott-4496b56e3392ba8183c0e1764557d51a8633e7ca.tar.gz scrott-4496b56e3392ba8183c0e1764557d51a8633e7ca.zip |
Add admin setting 'allowPublicSignup'
This setting will be used to decide if the app should allow unauthenticated users to create their own user accounts or if an admin must create them.
Diffstat (limited to 'app/class/setting.class.php')
-rw-r--r-- | app/class/setting.class.php | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/app/class/setting.class.php b/app/class/setting.class.php index b48f241..e3ef7f1 100644 --- a/app/class/setting.class.php +++ b/app/class/setting.class.php @@ -40,6 +40,19 @@ class Setting extends Framework $db->query($query); } + + /* + * Should the app allow the public to signup their own accounts with Scrott? + */ + static function allowPublicSignup($value = null) + { + $opt = "allowPublicSignup"; + + if ($value != null) + self::setValue($opt, $value); + + return self::getValue($opt); + } } ?> |