Closed (won't fix)
Project:
Organic Groups
Version:
7.x-2.x-dev
Component:
og.module
Priority:
Normal
Category:
Task
Assigned:
Reporter:
Created:
31 Mar 2012 at 12:38 UTC
Updated:
9 Jul 2020 at 16:05 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
nedjoIndeed this looks like a useful addition.
It looks like this access check is restricted to nodes. Presumably it should apply also to other og group entity types?
The dev branch includes views exposure for og_roles. Should this exposure be leveraged here?
Comment #2
Scryver commentedI know that it is focussed on nodes. That is what we use on the site, but it shouldn't be to hard to adjust that.
Comment #3
weekbeforenextAttached is a patch that works similar to the fix for Views access control by group permission in this issue http://drupal.org/node/1606990. It leaves for more flexibility in selecting the group entity type and the position of the gid in the URL.
Comment #4
weekbeforenextForgot to update the status. Hoping this time the patch will be tested :)
Comment #5
Scryver commentedCurrently testing. Will get back soon. For what version is this patch? Still the 7.x-2.x-dev? I'm currently on the 7.x-2.0-beta1 and the only difference is the offset in the og.module part.
Comment #6
weekbeforenextI created the patch for 7.x-2.x-dev so that it can hopefully be committed. I think there were additions in the og.module file in the dev version that I didn't add as a part of my changes. If you want to test, you might want to use the dev version instead of beta1. Thanks for taking a look.
Comment #7
Scryver commentedBeen testing it on the beta1 and it works perfectly. Only difference is the offset in the end of file:
--- Failed ---
...\sites\all\modules\og\og.module (Index: 3491, Size: 3209 )
So the end was at line 3210 instead of 3492, but this is a simple fix.
Great job!
Comment #8
amitaibuThis won't scale if you have 10,000 groups.
Why not use OG permission?Answer is hereHowever since solution is not scalable I don't think we can have it in OG core.
Comment #9
Scryver commentedBefore we have 10.000 groups we will use this happily. I'm sure someone will have something figured out by then :-)
Comment #10
amitaibu> Before we have 10.000 groups we will use this happily.
I have no problem with that, but I don't think it should be in OG core ;)
Comment #11
weekbeforenextI have started a sandbox project for OG Role Access based on what I have done so far. I will follow the changes with permission based access as a model for how the the role based access should evolve. I will also work on figuring out a way to make it more scaleable and versatile.
http://drupal.org/sandbox/weekbeforenext/1794706
Comment #12
shenzhuxi commentedThis should be published as a formal module. Before that there is a bug need to be fixed.
I checked out http://drupal.org/sandbox/weekbeforenext/1794706 and find that if OG role is used, there will be a infinite loop. I think the reason should be the same as http://drupal.org/node/1781218#comment-6737968, because og_context was called.
Comment #13
amitaibuI'm closing this issue, as if anything the code should be a contrib module.
Comment #14
rerooting commentedComment #15
rerooting commentedComment #16
rerooting commentedComment #17
delacosta456 commentedhi
reading this can i say that https://www.drupal.org/project/og_views_permissions can be an alternative ?