mirror of
https://github.com/verdigado/organization_folders.git
synced 2024-12-06 11:22:41 +01:00
Added security classes and draft version of ResourceVoter
This commit is contained in:
parent
22c06b5689
commit
88cb258c2b
11 changed files with 428 additions and 0 deletions
9
lib/Errors/AccessDenied.php
Normal file
9
lib/Errors/AccessDenied.php
Normal file
|
@ -0,0 +1,9 @@
|
|||
<?php
|
||||
|
||||
namespace OCA\OrganizationFolders\Errors;
|
||||
|
||||
class AccessDenied extends \RuntimeException {
|
||||
public function __construct(string $message = 'Access Denied.', \Throwable $previous = null) {
|
||||
parent::__construct($message, 403, $previous);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue