File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -488,7 +488,7 @@ protected function getSession($session_id)
488488 public function server_get ($ session_id , $ server_id = null , $ section ='' ) {
489489 global $ app ;
490490 if (!$ this ->checkPerm ($ session_id , 'server_get ' )) {
491- $ this -> server -> fault ('permission_denied ' , 'You do not have the permissions to access this function. ' );
491+ throw new SoapFault ('permission_denied ' , 'You do not have the permissions to access this function. ' );
492492 return false ;
493493 }
494494 if (!empty ($ session_id )) {
@@ -522,7 +522,7 @@ public function server_get_all($session_id)
522522 {
523523 global $ app ;
524524 if (!$ this ->checkPerm ($ session_id , 'server_get ' )) {
525- $ this -> server -> fault ('permission_denied ' , 'You do not have the permissions to access this function. ' );
525+ throw new SoapFault ('permission_denied ' , 'You do not have the permissions to access this function. ' );
526526 return false ;
527527 }
528528 if (!empty ($ session_id )) {
You can’t perform that action at this time.
0 commit comments