Updated
This commit is contained in:
@@ -77,7 +77,7 @@ function vs01_access_state($association_slug = '') {
|
|||||||
// Corpus Builder — highest participant tier
|
// Corpus Builder — highest participant tier
|
||||||
$cb_gid = intval($groups['corpus_builder'] ?? 0);
|
$cb_gid = intval($groups['corpus_builder'] ?? 0);
|
||||||
if ($cb_gid) {
|
if ($cb_gid) {
|
||||||
$r = q("SELECT xchain FROM pgrp_member WHERE gid = %d AND xchain = '%s' LIMIT 1",
|
$r = q("SELECT xchan FROM pgrp_member WHERE gid = %d AND xchan = '%s' LIMIT 1",
|
||||||
intval($cb_gid),
|
intval($cb_gid),
|
||||||
dbesc($observer)
|
dbesc($observer)
|
||||||
);
|
);
|
||||||
@@ -87,7 +87,7 @@ function vs01_access_state($association_slug = '') {
|
|||||||
// SASE Participant
|
// SASE Participant
|
||||||
$sase_gid = intval($groups['sase_participant'] ?? 0);
|
$sase_gid = intval($groups['sase_participant'] ?? 0);
|
||||||
if ($sase_gid) {
|
if ($sase_gid) {
|
||||||
$r = q("SELECT xchain FROM pgrp_member WHERE gid = %d AND xchain = '%s' LIMIT 1",
|
$r = q("SELECT xchan FROM pgrp_member WHERE gid = %d AND xchan = '%s' LIMIT 1",
|
||||||
intval($sase_gid),
|
intval($sase_gid),
|
||||||
dbesc($observer)
|
dbesc($observer)
|
||||||
);
|
);
|
||||||
@@ -97,7 +97,7 @@ function vs01_access_state($association_slug = '') {
|
|||||||
// Civic Professional
|
// Civic Professional
|
||||||
$prof_gid = intval($groups['civic_professional'] ?? 0);
|
$prof_gid = intval($groups['civic_professional'] ?? 0);
|
||||||
if ($prof_gid) {
|
if ($prof_gid) {
|
||||||
$r = q("SELECT xchain FROM pgrp_member WHERE gid = %d AND xchain = '%s' LIMIT 1",
|
$r = q("SELECT xchan FROM pgrp_member WHERE gid = %d AND xchan = '%s' LIMIT 1",
|
||||||
intval($prof_gid),
|
intval($prof_gid),
|
||||||
dbesc($observer)
|
dbesc($observer)
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user