Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Register
Sign in
Toggle navigation
Menu
Open sidebar
ISPConfig
ISPConfig 3
Commits
ae9ca85a
Commit
ae9ca85a
authored
Sep 01, 2015
by
Till Brehm
Browse files
Fixed: FS#3982 - Cannot modify mail domain when owner
parent
7b26eae1
Changes
1
Hide whitespace changes
Inline
Side-by-side
interface/web/mail/mail_domain_edit.php
View file @
ae9ca85a
...
...
@@ -332,7 +332,7 @@ class page_action extends tform_actions {
}
else
{
//* We do not allow users to change a domain which has been created by the admin
$rec
=
$app
->
db
->
queryOneRecord
(
"SELECT domain from mail_domain WHERE domain_id = ?"
,
$this
->
id
);
if
(
$rec
[
'domain'
]
!=
$this
->
dataRecord
[
"domain"
]
&&
$app
->
tform
->
checkPerm
(
$this
->
id
,
'u'
))
{
if
(
$rec
[
'domain'
]
!=
$this
->
dataRecord
[
"domain"
]
&&
!
$app
->
tform
->
checkPerm
(
$this
->
id
,
'u'
))
{
//* Add a error message and switch back to old server
$app
->
tform
->
errorMessage
.
=
$app
->
lng
(
'The Domain can not be changed. Please ask your Administrator if you want to change the domain name.'
);
$this
->
dataRecord
[
"domain"
]
=
$rec
[
'domain'
];
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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