aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Access
diff options
context:
space:
mode:
authorredmatrix <git@macgirvin.com>2016-07-04 21:33:25 -0700
committerredmatrix <git@macgirvin.com>2016-07-04 21:33:25 -0700
commite6224898d29b605da6751b6744f0e544250b600a (patch)
tree70b801be1984280b820fa66d61417c3a1f2f8519 /Zotlabs/Access
parentd566ffa678dc9f035a022304a82560b19495a838 (diff)
downloadvolse-hubzilla-e6224898d29b605da6751b6744f0e544250b600a.tar.gz
volse-hubzilla-e6224898d29b605da6751b6744f0e544250b600a.tar.bz2
volse-hubzilla-e6224898d29b605da6751b6744f0e544250b600a.zip
more heavy lifting on xtensible perms
Diffstat (limited to 'Zotlabs/Access')
-rw-r--r--Zotlabs/Access/PermissionLimits.php4
-rw-r--r--Zotlabs/Access/PermissionRoles.php4
2 files changed, 4 insertions, 4 deletions
diff --git a/Zotlabs/Access/PermissionLimits.php b/Zotlabs/Access/PermissionLimits.php
index ddea919aa..907adaae2 100644
--- a/Zotlabs/Access/PermissionLimits.php
+++ b/Zotlabs/Access/PermissionLimits.php
@@ -11,7 +11,7 @@ class PermissionLimits {
if($r) {
if($r[0]['perm_limit'] != $perm_limit) {
$x = q("update perm_limits set perm_limit = %d where id = %d",
- dbesc($perm_limit)
+ dbesc($perm_limit),
intval($r[0]['id'])
);
}
@@ -29,7 +29,7 @@ class PermissionLimits {
static public function Get($channel_id,$perm = '') {
if($perm) {
$r = q("select * from perm_limits where channel_id = %d and perm = '%s' limit 1",
- intval($channel_id)
+ intval($channel_id),
dbesc($perm)
);
if($r)
diff --git a/Zotlabs/Access/PermissionRoles.php b/Zotlabs/Access/PermissionRoles.php
index 32a72d3ae..e3b16a66c 100644
--- a/Zotlabs/Access/PermissionRoles.php
+++ b/Zotlabs/Access/PermissionRoles.php
@@ -7,8 +7,8 @@ use Zotlabs\Lib as Zlib;
class PermissionRoles {
- static private role_limits = array();
- static private role_perms = array();
+ static private $role_limits = array();
+ static private $role_perms = array();
static public function roles() {
$roles = [