allow custom role permissions and fix site timezone.

This commit is contained in:
friendica
2014-09-29 23:36:41 -07:00
parent 5292e3a100
commit f8468b4c3a
4 changed files with 16 additions and 5 deletions

View File

@@ -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;