Further refine projects system

This commit is contained in:
Alex Cabal 2024-12-15 22:44:31 -06:00
parent 2449de6f6c
commit 5782d6ca7d
20 changed files with 307 additions and 94 deletions

View file

@ -10,7 +10,7 @@ $passwordAction = HttpInput::SessionObject('password-action', Enums\PasswordActi
try{
if($user === null){
$user = User::Get(HttpInput::Int(GET, 'user-id'));
$user = User::GetByIdentifier(HttpInput::Str(GET, 'user-identifier'));
}
if(Session::$User === null){
@ -40,13 +40,14 @@ catch(Exceptions\InvalidPermissionsException){
<?= Template::Header(
[
'title' => 'Edit user #' . $user->UserId,
'canonicalUrl' => $user->Url . '/edit',
'css' => ['/css/user.css'],
'highlight' => ''
]
) ?>
<main>
<section class="narrow">
<h1>Edit User #<?= $user->UserId ?></h1>
<h1>Edit <?= Formatter::EscapeHtml($user->DisplayName) ?></h1>
<?= Template::Error(['exception' => $exception]) ?>