Airship\Cabin\Bridge\Blueprint\Permissions::getGroupPerms PHP Method

getGroupPerms() public method

public getGroupPerms ( integer $groupId, integer $contextId ) : array
$groupId integer
$contextId integer
return array
    public function getGroupPerms(int $groupId, int $contextId) : array
    {
        $perms = $this->db->first(' SELECT a.label FROM airship_perm_rules r ' . ' LEFT JOIN airship_perm_actions a ON r.action = a.actionid ' . ' WHERE r.context = ? AND r.groupid = ?', $contextId, $groupId);
        if (empty($perms)) {
            return [];
        }
        return $perms;
    }