You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Implement proper permissions schemes on the tasks and the runner.
Allow anyone that can see at least one task to visit /dev/tasks and have the list rendered.
Allow per-task configuration
Extra for experts - perhaps a CMS admin area to configure DevTasks? Then permissions could be managed in the same way as pages, for example. Could be fun 😉
I've had a cursory play-around with this - the most jarring thing is that we get to dev/tasks via the DevelopmentAdmin controller, which also has a strict isAdmin() check. So this would also need to add a sort of "can see at least one dev-admin area" check to that init() method as well - which is fine, and lovely and granular, but a little more work 😄
@andrewandante I've added a docs PR to call out this change in the changelog. Can you please take a look and suggest any changes you think should be made?
Note that the lack of detail is mostly because I was feeling a little lazy lol so if you think there should be more detail please don't hesitate to say so (and preferably suggest specific wording)
Affected Version
CMS All
Description
Currently the ability to view and run a
BuildTask
from the browser is restricted toADMIN
s via a hard-coded check inTaskRunner.php
: https://github.com/silverstripe/silverstripe-framework/blob/5/src/Dev/TaskRunner.php#L42-L57. A more fine-grained permission scheme would allow a subset of users to be able to trigger a specific task, for example.Proposal
/dev/tasks
and have the list rendered.PRs
The text was updated successfully, but these errors were encountered: