honor caneditdomain flag correctly; corrected error messages; updated external URLs

Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann
2022-11-20 12:22:03 +01:00
parent eb13796976
commit 777991e0e3
6 changed files with 37 additions and 26 deletions

View File

@@ -223,6 +223,11 @@ if ($page == 'overview' || $page == 'domains') {
$result = json_decode($json_result, true)['data'];
if (isset($result['customerid']) && $result['customerid'] == $userinfo['customerid']) {
if ((int) $result['caneditdomain'] == 0) {
Response::standardError('domaincannotbeedited', $result['domain']);
}
if (isset($_POST['send']) && $_POST['send'] == 'send') {
try {
SubDomains::getLocal($userinfo, $_POST)->update();