aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2015-01-14 19:27:55 -0800
committerfriendica <info@friendica.com>2015-01-14 19:27:55 -0800
commit56bc3bcdcee41d5ca6920c878aa8576dc673d039 (patch)
tree118c97cdaeac299afb586cf96ba4fdbbb1ff3591
parent2e89c13229739e41c6405e9124a16a9d2ada3cfb (diff)
downloadvolse-hubzilla-56bc3bcdcee41d5ca6920c878aa8576dc673d039.tar.gz
volse-hubzilla-56bc3bcdcee41d5ca6920c878aa8576dc673d039.tar.bz2
volse-hubzilla-56bc3bcdcee41d5ca6920c878aa8576dc673d039.zip
provide correct permissions role default for old-timers that didn't have any role configured.
-rw-r--r--mod/settings.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/mod/settings.php b/mod/settings.php
index 59ce98a2a..902213446 100644
--- a/mod/settings.php
+++ b/mod/settings.php
@@ -1004,7 +1004,10 @@ function settings_content(&$a) {
$evdays = 3;
$permissions_role = get_pconfig(local_user(),'system','permissions_role');
- $permissions_set = (($permissions_role && $permissions_role != 'custom') ? true : false);
+ if(! $permissions_role)
+ $permissions_role = 'custom';
+
+ $permissions_set = (($permissions_role != 'custom') ? true : false);
$vnotify = get_pconfig(local_user(),'system','vnotify');
$always_show_in_notices = get_pconfig(local_user(),'system','always_show_in_notices');
if($vnotify === false)