Example use case:
- Users from the role student, but could be assigned to group classA, paperB, yearC, etc. to access different content. Using role for this will be a nightmare
- Occasionally temporary user such as tutor, or visiting lecturer

Initially thinking of implement on top of Flexi Access, but after started coding, noticed a lot of code duplication with Simple Access (SA) in term of grouping. In addition, SA' profile will provide a nice setup to support user group and existing role group.

The submodule could take a new local task to handle user groups.
Just wondering does SA provides any api/hook for user access control or profile? I notice there is for simple_access_author but I guess that would not cut it. Probably can build on top of ACL and SA.

What do you think?

CommentFileSizeAuthor
#1 simples_access-1397074-1.patch503 bytesckng
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

ckng’s picture

Status: Active » Needs review
FileSize
503 bytes

Here is the submodule for adding simple access group with user.
Sandbox: Simple Access User

Attached patch needed for simple_access:
- Added 2 hooks to simple_access

hook_sa_save_group($edit)
hook_sa_delete_group($gid)
JohnnyX’s picture

Would it be possible to let users define own groups (of users) and give the own groups view access (like share feature at Facebook or Google+)?

gordon’s picture

Status: Needs review » Postponed (maintainer needs more info)

Can I get a little more feedback on this. With the changes in D8, this hook will be lost, but you will be able to do this via entities.