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

Data Access Object #104

Open
michielbdejong opened this issue Jul 6, 2022 · 0 comments
Open

Data Access Object #104

michielbdejong opened this issue Jul 6, 2022 · 0 comments

Comments

@michielbdejong
Copy link
Member

For security, we should make each command only access the application state through https://github.com/pondersource/prejournal/blob/main/src/commands/helpers/dataAccessObject.php
so that we have a single place where we make sure the currently logged in user only gets to see and change data they are allowed to see and change.

Maybe we should instantiate the DAO from the session, so that the access control restrictions are applied to it in the constructor?

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

1 participant