Skip to content

Commit

Permalink
Add rights() method to Gateway, Payment, Simulate, Stkpush, and Webho…
Browse files Browse the repository at this point in the history
…ok entities
  • Loading branch information
dedanirungu committed Apr 12, 2024
1 parent fc03d67 commit 80a4f44
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Entities/Gateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,13 @@ public function structure($structure): array
*/
public function rights(): array
{
$rights = parent::rights();

$rights['staff'] = ['view' => true];
$rights['registered'] = ['view' => true];
$rights['guest'] = [];

return $rights;
}

}
Expand Down
6 changes: 6 additions & 0 deletions Entities/Payment.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,12 @@ public function structure($structure): array
*/
public function rights(): array
{
$rights = parent::rights();

$rights['staff'] = ['view' => true];
$rights['registered'] = ['view' => true];
$rights['guest'] = [];

return $rights;
}
}
6 changes: 6 additions & 0 deletions Entities/Simulate.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,13 @@ public function structure($structure): array
*/
public function rights(): array
{
$rights = parent::rights();

$rights['staff'] = ['view' => true];
$rights['registered'] = ['view' => true];
$rights['guest'] = [];

return $rights;
}

}
6 changes: 6 additions & 0 deletions Entities/Stkpush.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,12 @@ public function structure($structure): array
*/
public function rights(): array
{
$rights = parent::rights();

$rights['staff'] = ['view' => true];
$rights['registered'] = ['view' => true];
$rights['guest'] = [];

return $rights;
}
}
6 changes: 6 additions & 0 deletions Entities/Webhook.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,12 @@ public function structure($structure): array
*/
public function rights(): array
{
$rights = parent::rights();

$rights['staff'] = ['view' => true];
$rights['registered'] = ['view' => true];
$rights['guest'] = [];

return $rights;
}
}

0 comments on commit 80a4f44

Please sign in to comment.