Closed (fixed)
Project:
Context OG
Version:
6.x-3.0
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
28 Jan 2011 at 02:37 UTC
Updated:
29 Nov 2012 at 00:41 UTC
Jump to comment: Most recent file
Comments
Comment #1
xamanu commentedHi, I needed something similar: To have a context depending on a member status of a group. Since I saw your case first I implemented the admin check as well. It was just a couple of lines more.
With this patch there should be a new condition for context module available that checks inside a given group context the member status of the current user. The conditions can be either: "Not a member", "Member of the group", or "Admin of the group".
Please test the patch.
Comment #2
david.mccandless commentedThis is exactly what I was looking to do as well. I just tried the patch and it works great for me, although I have not done much testing yet. Thanks so much xamanu.
Comment #3
david.mccandless commentedI have added a few more contexts and done more testing with the patch and it is working great for me. Thanks again.
Comment #4
mtndan commentedThank you!
Comment #5
Crom commentedWorks perfectly here, thank you!
Comment #6
igorik commentedcan be it ported into the module? is it maintaned yet?
Comment #7
paul2 commentedsubscribing.
Comment #8
felipe commented+1 for this feature in the module.
Comment #9
igorik commentedComment #10
goose2000 commentedIs this in the dev version now? Guess I could go look at the code...
UPDATE: Uh no, there is no
context_og_condition_member_status
in the dev code
Comment #11
goose2000 commentedJust an update. I got github going today, applied this patch and it is working just great, as expected. Now only my admins can use the 'group details' block; that allow them to create new content - awesome.
Comment #12
jgraham commentedHey all thanks for the reviews and sorry to leave this hanging for so long.
I wanted to get the equivalent in for 7.x-2.x branch first which also handles group roles.
http://drupalcode.org/project/context_og.git/commit/1a6bd88
http://drupalcode.org/project/context_og.git/commit/7611efc