Skip to content

Commit

Permalink
Version 0.9.54
Browse files Browse the repository at this point in the history
- Added optional `job_read_only` privilege.  When set, a user (or API key) can ONLY run stock events from the schdule, with NO customization.
  • Loading branch information
jhuckaby committed Jul 15, 2024
1 parent eb2808f commit 6bd3d90
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions lib/api/event.js
Original file line number Diff line number Diff line change
Expand Up @@ -387,6 +387,9 @@ module.exports = Class.create({
delete params.max_children;
delete params.session_id;

// if user has special job_read_only privilege, remove all param keys (no customization)
if (!user.privileges.job_read_only) params = {};

// allow for &params/foo=bar and the like
for (var key in params) {
if (key.match(/^(\w+)\/(\w+)$/)) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Cronicle",
"version": "0.9.53",
"version": "0.9.54",
"description": "A simple, distributed task scheduler and runner with a web based UI.",
"author": "Joseph Huckaby <[email protected]>",
"homepage": "https://github.com/jhuckaby/Cronicle",
Expand Down

0 comments on commit 6bd3d90

Please sign in to comment.