File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed
Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -332,7 +332,7 @@ function onBeforeUpdate() {
332332 } else {
333333 //* We do not allow users to change a domain which has been created by the admin
334334 $ rec = $ app ->db ->queryOneRecord ("SELECT domain from mail_domain WHERE domain_id = ? " , $ this ->id );
335- if ($ rec ['domain ' ] != $ this ->dataRecord ["domain " ] && $ app ->tform ->checkPerm ($ this ->id , 'u ' )) {
335+ if ($ rec ['domain ' ] != $ this ->dataRecord ["domain " ] && ! $ app ->tform ->checkPerm ($ this ->id , 'u ' )) {
336336 //* Add a error message and switch back to old server
337337 $ app ->tform ->errorMessage .= $ app ->lng ('The Domain can not be changed. Please ask your Administrator if you want to change the domain name. ' );
338338 $ this ->dataRecord ["domain " ] = $ rec ['domain ' ];
You can’t perform that action at this time.
0 commit comments