fixes to perms
This commit is contained in:
parent
2c9938f0d5
commit
237cca7a0d
@ -7,7 +7,7 @@ class AbConfig {
|
|||||||
|
|
||||||
static public function Load($chan,$xhash,$family = '') {
|
static public function Load($chan,$xhash,$family = '') {
|
||||||
if($family)
|
if($family)
|
||||||
$where = sprintf(" and family = '%s' ",dbesc($family));
|
$where = sprintf(" and cat = '%s' ",dbesc($family));
|
||||||
$r = q("select * from abconfig where chan = %d and xchan = '%s' $where",
|
$r = q("select * from abconfig where chan = %d and xchan = '%s' $where",
|
||||||
intval($chan),
|
intval($chan),
|
||||||
dbesc($xhash)
|
dbesc($xhash)
|
||||||
|
@ -468,9 +468,9 @@ function zot_refresh($them, $channel = null, $force = false) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if(! $my_perms) {
|
if(! $my_perms) {
|
||||||
$x = \Zotlabs\Access\Permissions::FilledAutoperms($channel['channel_id']);
|
$m = \Zotlabs\Access\Permissions::FilledAutoperms($channel['channel_id']);
|
||||||
if($x) {
|
if($m) {
|
||||||
$my_perms = $x;
|
$my_perms = $m;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user