Browse Source

now stores the permissions as an array too

dev
Cerys 4 weeks ago
parent
commit
223233d381
  1. 4
      src/QueryBuilder/PermissionsQuery/PermissionQueryResponse.php

4
src/QueryBuilder/PermissionsQuery/PermissionQueryResponse.php

@ -4,6 +4,8 @@ namespace Darksparrow\DeegraphInteractions\QueryBuilder\PermissionsQuery;
final class PermissionQueryResponse
{
public array $Permissions = [];
public bool $CanAct = false;
public bool $CanDelete = false;
public bool $CanRead = false;
@ -13,6 +15,8 @@ final class PermissionQueryResponse
{
foreach ($deegraphResponse["@permissions"] as $permission)
{
$this->Permissions[] = $permission;
switch($permission)
{
case "ACT":

Loading…
Cancel
Save