diff options
Diffstat (limited to 'apps/provisioning_api/lib/Middleware/Exceptions')
-rw-r--r-- | apps/provisioning_api/lib/Middleware/Exceptions/NotSubAdminException.php | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/apps/provisioning_api/lib/Middleware/Exceptions/NotSubAdminException.php b/apps/provisioning_api/lib/Middleware/Exceptions/NotSubAdminException.php new file mode 100644 index 00000000000..007ea04db46 --- /dev/null +++ b/apps/provisioning_api/lib/Middleware/Exceptions/NotSubAdminException.php @@ -0,0 +1,11 @@ +<?php + +namespace OCA\Provisioning_API\Middleware\Exceptions; + +use OCP\AppFramework\Http; + +class NotSubAdminException extends \Exception { + public function __construct() { + parent::__construct('Logged in user must be at least a sub admin', Http::STATUS_FORBIDDEN); + } +}
\ No newline at end of file |