File tree Expand file tree Collapse file tree 2 files changed +19
-1
lines changed Expand file tree Collapse file tree 2 files changed +19
-1
lines changed Original file line number Diff line number Diff line change @@ -156,6 +156,7 @@ function view_user()
156
156
$ params ['ShowEdit ' ] = false ;
157
157
}
158
158
159
+ $ params ['callingUser ' ] = $ callingUser ;
159
160
$ params ['idString ' ] = $ userService ->getDefaultIdString ($ user );
160
161
$ params ['projectNamesIds ' ] = $ projectNamesIds ;
161
162
$ params ['role_ProjIds ' ] = $ roleProjectIds ;
Original file line number Diff line number Diff line change 72
72
</ul>
73
73
</div>
74
74
75
-
75
+ <?php
76
+ $ isCallingUserAdmin = $ params ['callingUser ' ]->isAdmin ();
77
+ ?>
76
78
<!-- User -->
77
79
<div class="tableContainer" style="width: 55%; float: left;">
78
80
<span class="header" style="vertical-align:middle; float: left; padding-top: 0.9em; padding-left: 1em;">
127
129
</td>
128
130
</tr>
129
131
<?php } ?>
132
+ <?php if ($ isCallingUserAdmin ) : ?>
133
+ <tr class="site_table_row_1">
134
+ <td class="site_table">Last Logged In</td>
135
+ <td class="site_table">
136
+ <?php
137
+ if ($ params ['user ' ]->getLastLoginDate ()) {
138
+ xecho (
139
+ $ params ['user ' ]->getLastLoginDate ()
140
+ ->format ('Y-m-d H:i:s ' )
141
+ );
142
+ }
143
+ ?>
144
+ </td>
145
+ </tr>
146
+ <?php endif ; ?>
130
147
</table>
131
148
</div>
132
149
</div>
You can’t perform that action at this time.
0 commit comments