Closed (won't fix)
Project:
Organic Groups
Version:
master
Component:
og_access.module
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
19 Sep 2008 at 07:23 UTC
Updated:
13 Oct 2008 at 17:02 UTC
Jump to comment: Most recent
Comments
Comment #1
amitaibuI think you can already achieve this by using OG subgroups module.
Set a group of maintainers and under it all the other groups. When an admin will be created in the maintainers group, she will be propagated down the groups and become and admin there as well.
Comment #2
rapsli commentedwell, problem though is: those user's can't have admin status, but are only able to view content in private groups.
Comment #3
Antoine Lafontaine commentedI've done some customization to OG for a client in order to achieve this myself.
Use case: system has all private groups where members can upload files which are only accessible by members of the said group. There is a 'moderator' role which can access and see all the files uploaded in all the groups, but that moderator role can't edit nor delete any file. If they find something that needs to be removed, they report it to an admin which will take any required action.
I haven't reviewed rapsli's code, but I would say this kind of permission would be quite useful. (this removes the need to add the moderator to any newly created group) My approach was just to add a permission "view all groups" to the permission I could give to a role.
Maybe this is a very limited use case...
Comment #4
rapsli commented"My approach was just to add a permission "view all groups" to the permission I could give to a role"
IMO this doesn't work if you enable og_access module
Comment #5
Antoine Lafontaine commentedYes, you are right, my post was probably too vague. I've added the permission in the og.module and added some conditional checking in the og_access_node_grants function in og_access.module.
It probably isn't "good" code and is quite "narrow minded", but here's the code I've used to give "subscriber acess" to any role that as "view all groups" permission assigned (maybe it should be called "suscribed to all groups")
IMO, it feels like a quick and dirty hack, but in the context I'm using it it works as intended (time limitations played against me).
My comment was intended to support the idea that a clean and well tested implementation of such a feature would, indeed, be useful.
Comment #6
rapsli commentedhi
Thanks for the support. I guess this does work ;) Let's see what moshe thinks about it.
Comment #7
Anonymous (not verified) commentedThis is a great feature and IMO should be implemented.
Can this patch be applied to the 5.x branch?
Comment #8
moshe weitzman commentedyeah, maybe. i'll think about it. not for d5 though. thats on bug fix only.
Comment #9
moshe weitzman commentedI am not inclined to add this feature. Feel free to do it in Contrib using node access api and hook_og().
Comment #10
rapsli commentedhttp://drupal.org/project/og_superadmin