forked from extern/egroupware
Avoid 'Class ... not found' error when throwing exceptions that extend NoPermission
This commit is contained in:
parent
3261906a09
commit
25bcc1c864
@ -36,27 +36,6 @@ class egw_exception extends Api\Exception {}
|
||||
*/
|
||||
class egw_exception_no_permission extends Api\Exception {}
|
||||
|
||||
/**
|
||||
* User lacks the right to run an application
|
||||
*
|
||||
* @deprecated use Api\Exception\NoPermission\App
|
||||
*/
|
||||
class egw_exception_no_permission_app extends Api\Exception\NoPermission\App {}
|
||||
|
||||
/**
|
||||
* User is no eGroupWare admin (no right to run the admin application)
|
||||
*
|
||||
* @deprecated use Api\Exception\NoPermission\Admin
|
||||
*/
|
||||
class egw_exception_no_permission_admin extends Api\Exception\NoPermission\Admin {}
|
||||
|
||||
/**
|
||||
* User lacks a record level permission, eg. he's not the owner and has no grant from the owner
|
||||
*
|
||||
* @deprecated use Api\Exception\NoPermission\Record
|
||||
*/
|
||||
class egw_exception_no_permission_record extends Api\Exception\NoPermission\Record {}
|
||||
|
||||
/**
|
||||
* A record or application entry was not found for the given id
|
||||
*
|
||||
|
19
phpgwapi/inc/class.egw_exception_no_permission_admin.inc.php
Normal file
19
phpgwapi/inc/class.egw_exception_no_permission_admin.inc.php
Normal file
@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
* Egroupware
|
||||
* @license http://opensource.org/licenses/gpl-license.php GPL - GNU General Public License
|
||||
* @package api
|
||||
* @link http://www.egroupware.org
|
||||
* @author Nathan Gray
|
||||
* @version $Id$
|
||||
*/
|
||||
|
||||
use EGroupware\Api;
|
||||
|
||||
/**
|
||||
* User is no eGroupWare admin (no right to run the admin application)
|
||||
*
|
||||
* @deprecated use Api\Exception\NoPermission\Admin
|
||||
*/
|
||||
class egw_exception_no_permission_admin extends Api\Exception\NoPermission\Admin {}
|
19
phpgwapi/inc/class.egw_exception_no_permission_app.inc.php
Normal file
19
phpgwapi/inc/class.egw_exception_no_permission_app.inc.php
Normal file
@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
* Egroupware
|
||||
* @license http://opensource.org/licenses/gpl-license.php GPL - GNU General Public License
|
||||
* @package api
|
||||
* @link http://www.egroupware.org
|
||||
* @author Nathan Gray
|
||||
* @version $Id$
|
||||
*/
|
||||
|
||||
use EGroupware\Api;
|
||||
|
||||
/**
|
||||
* User lacks the right to run an application
|
||||
*
|
||||
* @deprecated use Api\Exception\NoPermission\App
|
||||
*/
|
||||
class egw_exception_no_permission_app extends Api\Exception\NoPermission\App {}
|
@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
* Egroupware
|
||||
* @license http://opensource.org/licenses/gpl-license.php GPL - GNU General Public License
|
||||
* @package api
|
||||
* @link http://www.egroupware.org
|
||||
* @author Nathan Gray
|
||||
* @version $Id$
|
||||
*/
|
||||
|
||||
use EGroupware\Api;
|
||||
|
||||
/**
|
||||
* User lacks a record level permission, eg. he's not the owner and has no grant from the owner
|
||||
*
|
||||
* @deprecated use Api\Exception\NoPermission\Record
|
||||
*/
|
||||
class egw_exception_no_permission_record extends Api\Exception\NoPermission\Record {}
|
Loading…
Reference in New Issue
Block a user