mirror of
https://github.com/getnamingo/registry.git
synced 2025-08-04 00:31:50 +02:00
Small CP ui fixes
This commit is contained in:
parent
0ffc034b9b
commit
60b682c402
2 changed files with 12 additions and 2 deletions
|
@ -366,6 +366,9 @@ class RegistrarsController extends Controller
|
|||
$secondHalf = [];
|
||||
}
|
||||
|
||||
// Check if the user is not an admin
|
||||
$role = $_SESSION['auth_roles'] ?? null;
|
||||
|
||||
return view($response,'admin/registrars/viewRegistrar.twig', [
|
||||
'registrar' => $registrar,
|
||||
'registrarContact' => $registrarContact,
|
||||
|
@ -373,7 +376,8 @@ class RegistrarsController extends Controller
|
|||
'secondHalf' => $secondHalf,
|
||||
'userEmail' => $userEmail,
|
||||
'registrarWhitelist' => $registrarWhitelist,
|
||||
'currentUri' => $uri
|
||||
'currentUri' => $uri,
|
||||
'isAdmin' => $role === 0
|
||||
]);
|
||||
} else {
|
||||
// Contact does not exist, redirect to the registrars view
|
||||
|
@ -429,6 +433,9 @@ class RegistrarsController extends Controller
|
|||
$secondHalf = [];
|
||||
}
|
||||
|
||||
// Check if the user is not an admin
|
||||
$role = $_SESSION['auth_roles'] ?? null;
|
||||
|
||||
return view($response,'admin/registrars/viewRegistrar.twig', [
|
||||
'registrar' => $registrar,
|
||||
'registrarContact' => $registrarContact,
|
||||
|
@ -436,7 +443,8 @@ class RegistrarsController extends Controller
|
|||
'secondHalf' => $secondHalf,
|
||||
'userEmail' => $userEmail,
|
||||
'registrarWhitelist' => $registrarWhitelist,
|
||||
'currentUri' => $uri
|
||||
'currentUri' => $uri,
|
||||
'isAdmin' => $role === 0
|
||||
]);
|
||||
} else {
|
||||
// Contact does not exist, redirect to the dashboard view
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue