Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
ISPConfig
ISPConfig 3
Commits
b8a75efc
Commit
b8a75efc
authored
Jan 21, 2014
by
Dominik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
corrected asking for permissions
parent
a6c61879
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
interface/lib/classes/remote.d/sites.inc.php
interface/lib/classes/remote.d/sites.inc.php
+8
-8
No files found.
interface/lib/classes/remote.d/sites.inc.php
View file @
b8a75efc
...
...
@@ -455,7 +455,7 @@ class remoting_sites extends remoting {
{
global
$app
;
if
(
!
$this
->
checkPerm
(
$session_id
,
'sites_web_aliasdomain_get'
))
{
if
(
!
$this
->
checkPerm
(
$session_id
,
'sites_web_
vhost_
aliasdomain_get'
))
{
throw
new
SoapFault
(
'permission_denied'
,
'You do not have the permissions to access this function.'
);
return
false
;
}
...
...
@@ -468,7 +468,7 @@ class remoting_sites extends remoting {
public
function
sites_web_vhost_aliasdomain_add
(
$session_id
,
$client_id
,
$params
)
{
global
$app
;
if
(
!
$this
->
checkPerm
(
$session_id
,
'sites_web_aliasdomain_add'
))
{
if
(
!
$this
->
checkPerm
(
$session_id
,
'sites_web_
vhost_
aliasdomain_add'
))
{
throw
new
SoapFault
(
'permission_denied'
,
'You do not have the permissions to access this function.'
);
return
false
;
}
...
...
@@ -491,7 +491,7 @@ class remoting_sites extends remoting {
//* Update a record
public
function
sites_web_vhost_aliasdomain_update
(
$session_id
,
$client_id
,
$primary_id
,
$params
)
{
if
(
!
$this
->
checkPerm
(
$session_id
,
'sites_web_aliasdomain_update'
))
{
if
(
!
$this
->
checkPerm
(
$session_id
,
'sites_web_
vhost_
aliasdomain_update'
))
{
throw
new
SoapFault
(
'permission_denied'
,
'You do not have the permissions to access this function.'
);
return
false
;
}
...
...
@@ -509,7 +509,7 @@ class remoting_sites extends remoting {
//* Delete a record
public
function
sites_web_vhost_aliasdomain_delete
(
$session_id
,
$primary_id
)
{
if
(
!
$this
->
checkPerm
(
$session_id
,
'sites_web_aliasdomain_delete'
))
{
if
(
!
$this
->
checkPerm
(
$session_id
,
'sites_web_
vhost_
aliasdomain_delete'
))
{
throw
new
SoapFault
(
'permission_denied'
,
'You do not have the permissions to access this function.'
);
return
false
;
}
...
...
@@ -524,7 +524,7 @@ class remoting_sites extends remoting {
{
global
$app
;
if
(
!
$this
->
checkPerm
(
$session_id
,
'sites_web_subdomain_get'
))
{
if
(
!
$this
->
checkPerm
(
$session_id
,
'sites_web_
vhost_
subdomain_get'
))
{
throw
new
SoapFault
(
'permission_denied'
,
'You do not have the permissions to access this function.'
);
return
false
;
}
...
...
@@ -537,7 +537,7 @@ class remoting_sites extends remoting {
public
function
sites_web_vhost_subdomain_add
(
$session_id
,
$client_id
,
$params
)
{
global
$app
;
if
(
!
$this
->
checkPerm
(
$session_id
,
'sites_web_subdomain_add'
))
{
if
(
!
$this
->
checkPerm
(
$session_id
,
'sites_web_
vhost_
subdomain_add'
))
{
throw
new
SoapFault
(
'permission_denied'
,
'You do not have the permissions to access this function.'
);
return
false
;
}
...
...
@@ -560,7 +560,7 @@ class remoting_sites extends remoting {
//* Update a record
public
function
sites_web_vhost_subdomain_update
(
$session_id
,
$client_id
,
$primary_id
,
$params
)
{
if
(
!
$this
->
checkPerm
(
$session_id
,
'sites_web_subdomain_update'
))
{
if
(
!
$this
->
checkPerm
(
$session_id
,
'sites_web_
vhost_
subdomain_update'
))
{
throw
new
SoapFault
(
'permission_denied'
,
'You do not have the permissions to access this function.'
);
return
false
;
}
...
...
@@ -578,7 +578,7 @@ class remoting_sites extends remoting {
//* Delete a record
public
function
sites_web_vhost_subdomain_delete
(
$session_id
,
$primary_id
)
{
if
(
!
$this
->
checkPerm
(
$session_id
,
'sites_web_subdomain_delete'
))
{
if
(
!
$this
->
checkPerm
(
$session_id
,
'sites_web_
vhost_
subdomain_delete'
))
{
throw
new
SoapFault
(
'permission_denied'
,
'You do not have the permissions to access this function.'
);
return
false
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment