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