You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
696 B
21 lines
696 B
<?php
|
|
|
|
require_once __DIR__ . '/../vendor/autoload.php';
|
|
require_once __DIR__ . '/../examples/DeegraphConnection.php';
|
|
|
|
use Darksparrow\DeegraphInteractions\QueryBuilder\QueryBuilder;
|
|
|
|
|
|
$permissions = QueryBuilder::Permission()
|
|
->On("{b222c121-0ed2-5819-bbf9-4db9aab85ea3}")
|
|
->As("{b222c121-0ed2-5819-bbf9-4db9aab85ea3}")
|
|
->Build()
|
|
->RunQuery(DeegraphConnection::DB())
|
|
;
|
|
|
|
echo "Permissions\n";
|
|
echo "===========";
|
|
echo "\nCan Act: " . ($permissions->CanAct ? "YES" : "NO");
|
|
echo "\nCan Delete: " . ($permissions->CanDelete ? "YES" : "NO");
|
|
echo "\nCan Read: " . ($permissions->CanRead ? "YES" : "NO");
|
|
echo "\nCan Write: " . ($permissions->CanWrite ? "YES" : "NO");
|
|
|