Problem/Motivation
Besides the possibiliy to manage users, which can access a certain entity on the config page of this entity (administer which users can access a certain entity), it would also be nice if it would be possible to administer, which entities a certain user can access.
Our usecase: If we have to revoke the access of a student to certain entities, it is neccessary to see all the entities he already entered the password. It is obviously not very efficent to check thousands of entities to look if the student is allowed to some of them.
Furthermore it is sometimes necessary to unlock a certain amount of entities for a certain user at once.
Proposed resolution
Add a page on the user config page with all lectures to which the student has access without entering a password. This should only be possible for admins with a corresponding permission. Present this information maybe as a checkbox list and the title of the entity, so that these "permissions" can be easily removed, maybe with a checkbox "remove all".
Furthermore add some ui element (e.g. a textfield) where commaseparated entitiy-ids can be entered. These entityIDs should be added to the database as entities, where the user does not have to enter the password.
Issue fork entity_access_password-3258955
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
meyerrob commentedComment #3
grimreaperComment #6
grimreaperWIP MR.
TODO:
- bundle access level
- update documentation
- implement hook_entity_delete to purge user_data when content is deleted
Comment #7
grimreaperComment #9
grimreaper