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

Allowed to remove a user when there are api keys. #1584

Open
wants to merge 36 commits into
base: master
Choose a base branch
from

Conversation

Daniel-KM
Copy link
Contributor

No description provided.

@zerocrates
Copy link
Member

We already have the Doctrine-level "cascade=remove" on the other end of this relationship which should be handling this.

Anecdotally, I don't have any issue deleting users that have API keys. Are you encountering that as a problem?

@Daniel-KM
Copy link
Contributor Author

It allows direct sql queries too. I have a site with more than 30000 guest users, and each year, many students are removed.

@Daniel-KM
Copy link
Contributor Author

Rebased on develop.

jimsafley and others added 27 commits August 18, 2021 22:21
All the overrides are already public and things are assuming that the
method just generally is public.
Before we just checked if the object's class name was in an array of valid
class names. This does not work when the object is a Doctrine proxy. To fix
this, we check if the object is an instanceof one of the valid class names.
Update Font Awesome library to version 5.15.4.
Check instanceof when validating value resource
Makes "required" fields more robust, and fixes usage of elements that
Laminas defaults as required (here we're defaulting to not-required).

(fix omeka#1779)
The page title for sites was hardcoded to H2.
Now one can change it to suite their needs.
Title is passed unescaped. Escaping takes place in the view.
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

Successfully merging this pull request may close these issues.

5 participants