Skip to content

Commit 98c70f3

Browse files
committed
Version 0.9.74
- Prevent non-admins from seeing any Admin UI. Fixes #869.
1 parent 8ea9255 commit 98c70f3

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

htdocs/js/pages/Admin.class.js

+4
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ Class.subclass( Page.Base, "Page.Admin", {
1212
onActivate: function(args) {
1313
// page activation
1414
if (!this.requireLogin(args)) return true;
15+
if (!app.isAdmin()) {
16+
setTimeout( function() { Nav.go('Home'); }, 1 );
17+
return true;
18+
}
1519

1620
if (!args) args = {};
1721
if (!args.sub) args.sub = this.default_sub;

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "Cronicle",
3-
"version": "0.9.73",
3+
"version": "0.9.74",
44
"description": "A simple, distributed task scheduler and runner with a web based UI.",
55
"author": "Joseph Huckaby <[email protected]>",
66
"homepage": "https://github.com/jhuckaby/Cronicle",

0 commit comments

Comments
 (0)