Skip to content

Commit e9466f3

Browse files
authored
account page ignore cache
1 parent 0935dbc commit e9466f3

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

webroot/panel/account.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,12 @@
5252

5353
if (!empty($added_keys)) {
5454
$added_keys = UnitySite::removeTrailingWhitespace($added_keys);
55-
$totalKeys = array_merge($USER->getSSHKeys(), $added_keys);
55+
$totalKeys = array_merge($USER->getSSHKeys(true), $added_keys);
5656
$USER->setSSHKeys($totalKeys, $OPERATOR);
5757
}
5858
break;
5959
case "delKey":
60-
$keys = $USER->getSSHKeys();
60+
$keys = $USER->getSSHKeys(true);
6161
unset($keys[intval($_POST["delIndex"])]); // remove key from array
6262
$keys = array_values($keys);
6363

@@ -78,7 +78,7 @@
7878
}
7979
break;
8080
case "account_deletion_request":
81-
$hasGroups = count($USER->getGroups()) > 0;
81+
$hasGroups = count($USER->getGroups(true)) > 0;
8282
if ($hasGroups) {
8383
die();
8484
break;
@@ -99,9 +99,9 @@
9999
<p>
100100
<strong>Username</strong> <code><?php echo $USER->getUID(); ?></code>
101101
<br>
102-
<strong>Organization</strong> <code><?php echo $USER->getOrg(); ?></code>
102+
<strong>Organization</strong> <code><?php echo $USER->getOrg(true); ?></code>
103103
<br>
104-
<strong>Email</strong> <code><?php echo $USER->getMail(); ?></code>
104+
<strong>Email</strong> <code><?php echo $USER->getMail(true); ?></code>
105105
</p>
106106

107107
<hr>
@@ -110,7 +110,7 @@
110110

111111
<?php
112112

113-
$isActive = count($USER->getGroups()) > 0;
113+
$isActive = count($USER->getGroups(true)) > 0;
114114
$isPI = $USER->isPI();
115115

116116
if ($isPI) {
@@ -156,7 +156,7 @@
156156

157157
<h5>SSH Keys</h5>
158158
<?php
159-
$sshPubKeys = $USER->getSSHKeys(); // Get ssh public key attr
159+
$sshPubKeys = $USER->getSSHKeys(true); // Get ssh public key attr
160160

161161
if (count($sshPubKeys) == 0) {
162162
echo "<p>You do not have any SSH public keys, press the button below to add one.</p>";
@@ -190,7 +190,7 @@
190190
<option value="" disabled hidden>Select Login Shell...</option>
191191

192192
<?php
193-
$cur_shell = $USER->getLoginShell();
193+
$cur_shell = $USER->getLoginShell(true);
194194
$found_selector = false;
195195
foreach ($CONFIG["loginshell"]["shell"] as $shell) {
196196
if ($cur_shell == $shell) {
@@ -229,7 +229,7 @@
229229

230230
<h5>Account Deletion</h5>
231231
<?php
232-
$hasGroups = count($USER->getGroups()) > 0;
232+
$hasGroups = count($USER->getGroups(true)) > 0;
233233

234234
if ($hasGroups) {
235235
echo "<p>You cannot request to delete your account while you are in a PI group.</p>";

0 commit comments

Comments
 (0)