From bf6d65f55eacde61e996b3b08994ddc6e66e0424 Mon Sep 17 00:00:00 2001
From: Simon Rettberg
Date: Wed, 28 Mar 2018 14:30:22 +0200
Subject: [dozmod] Simplify permissions, don't link user in userlist if
actionlog is inaccessible
Closes #3332
---
modules-available/dozmod/templates/userlist.html | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
(limited to 'modules-available/dozmod/templates/userlist.html')
diff --git a/modules-available/dozmod/templates/userlist.html b/modules-available/dozmod/templates/userlist.html
index b8080b44..3b919099 100644
--- a/modules-available/dozmod/templates/userlist.html
+++ b/modules-available/dozmod/templates/userlist.html
@@ -22,7 +22,11 @@
{{#users}}
- {{lastname}}, {{firstname}} |
+
+ <{{nameTag}} href="?do=dozmod§ion=actionlog&action=showuser&uuid={{userid}}">
+ {{lastname}}, {{firstname}}
+ {{nameTag}}>
+ |
{{orgname}} |
{{lastlogin}} |
{{email}} |
--
cgit v1.2.3-55-g7522
From 0df8ff53f4c71ffc4b0fdf72a520adfe08fed513 Mon Sep 17 00:00:00 2001
From: Simon Rettberg
Date: Thu, 12 Apr 2018 20:35:22 +0200
Subject: [dozmod] Properly sort "last login" column in user list
---
modules-available/dozmod/pages/users.inc.php | 4 ++--
modules-available/dozmod/templates/userlist.html | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
(limited to 'modules-available/dozmod/templates/userlist.html')
diff --git a/modules-available/dozmod/pages/users.inc.php b/modules-available/dozmod/pages/users.inc.php
index 23457ca6..a81bcb8b 100644
--- a/modules-available/dozmod/pages/users.inc.php
+++ b/modules-available/dozmod/pages/users.inc.php
@@ -46,7 +46,7 @@ class SubPage
$row['canlogin'] = self::checked($row['canlogin']);
$row['issuperuser'] = self::checked($row['issuperuser']);
$row['emailnotifications'] = self::checked($row['emailnotifications']);
- $row['lastlogin'] = date('d.m.Y', $row['lastlogin']);
+ $row['lastlogin_s'] = date('d.m.Y', $row['lastlogin']);
$rows[] = $row;
}
Render::addTemplate('userlist', array(
@@ -122,4 +122,4 @@ class SubPage
die($val);
}
-}
\ No newline at end of file
+}
diff --git a/modules-available/dozmod/templates/userlist.html b/modules-available/dozmod/templates/userlist.html
index 3b919099..6b19907d 100644
--- a/modules-available/dozmod/templates/userlist.html
+++ b/modules-available/dozmod/templates/userlist.html
@@ -28,7 +28,7 @@
{{nameTag}}>
{{orgname}} |
- {{lastlogin}} |
+ {{lastlogin_s}} |
{{email}} |
--
cgit v1.2.3-55-g7522
|