Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suggestion: remove db/access.php from the template #3

Open
mudrd8mz opened this issue Sep 21, 2015 · 1 comment
Open

Suggestion: remove db/access.php from the template #3

mudrd8mz opened this issue Sep 21, 2015 · 1 comment

Comments

@mudrd8mz
Copy link

This is a feedback based on experience from approval reviews in the Moodle Plugins directory. It seems that (some) folks tend to keep the db/access.php just because the template has it. There are often no benefits of it.

No standard Atto plugin has the file. In fact, for most (almost all) Atto plugins, checking for availability/visibility permissions does not seem to make sense. Additionally, as there is no default permission for the "user" archetype in the template, the Atto plugin may not be available in places like own profile editing.

My suggestion is

  • either to remove the capability stuff from the template completely. In rare cases when it is needed, the developer should be well aware of how to add it manually;
  • or at least fix the template so that the contextlevel is set to the system context and the only archetype used is the Authenticated user (but again, the actual use case for such thing is really rare imho).
@justinhunt
Copy link
Owner

Sure. This seems fair enough. In the initial plugins I made from this we were adding content to the html area that we might not want students to be able to add. But you are right, thats probably not normal, and the issue of the contextlevel remains. I will remove access.php and related code shortly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants