aboutsummaryrefslogtreecommitdiffstats
path: root/include/permissions.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-09-29 23:36:41 -0700
committerfriendica <info@friendica.com>2014-09-29 23:36:41 -0700
commitf8468b4c3aeeb51f485c6bb7107f5b64a9643c85 (patch)
tree9665491010508ed70be7fc9e1b8fca0b7e5227f5 /include/permissions.php
parent5292e3a100dd8da20865167e59f859a528676df7 (diff)
downloadvolse-hubzilla-f8468b4c3aeeb51f485c6bb7107f5b64a9643c85.tar.gz
volse-hubzilla-f8468b4c3aeeb51f485c6bb7107f5b64a9643c85.tar.bz2
volse-hubzilla-f8468b4c3aeeb51f485c6bb7107f5b64a9643c85.zip
allow custom role permissions and fix site timezone.
Diffstat (limited to 'include/permissions.php')
-rw-r--r--include/permissions.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/permissions.php b/include/permissions.php
index 438b807d0..61ac8aea3 100644
--- a/include/permissions.php
+++ b/include/permissions.php
@@ -722,6 +722,11 @@ function get_role_perms($role) {
}
+ $x = get_config('system','role_perms');
+ // let system settings over-ride any or all
+ if($x && is_array($x) && array_key_exists($role,$x))
+ $ret = array_merge($ret,$x[$role]);
+
call_hooks('get_role_perms',$ret);
return $ret;