I wanted the ability to restrict access to Panel Pages by the user's OG Role. I have a patch that I will post next that provides this ability.

Comments

weekbeforenext’s picture

Status: Active » Needs review
StatusFileSize
new3.07 KB

Attached is a patch that provides access control for Panel Pages by the user's OG Role.

amitaibu’s picture

Why not use OG permissions?

weekbeforenext’s picture

Using role based access control is a preference. It is just sometimes easier to think about the user's role and the content they should be able to access. I think it would be a great feature for this module and very useful for others.

Scryver’s picture

Agree to that. Same as in drupal core, one time you want to use permissions and the other time you want to use the role.

PS the patched applied successfully for 7.x-2.0-beta1.

weekbeforenext’s picture

I 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

hefox’s picture

Component: og_access.module » og.module

og_access is a node type module, unrelated to custom og roles tmk :)

akolahi’s picture

Being able to restrict panels and panel content based on OG Roles would be very helpful in my case as well.

aschiwi’s picture

Status: Needs review » Closed (works as designed)

The patch doesn't work for -dev anymore, but the Sandbox at https://drupal.org/sandbox/weekbeforenext/1794706 works well. I guess I'll close this here for now but I would also like to add that this is something I was looking for in OG core and would like to see in OG.

schulle@web.de’s picture

Status: Closed (works as designed) » Needs review

Status: Needs review » Needs work

The last submitted patch, 1: og-panels_pages_access_control_by_og_role-1780502-1.patch, failed testing.

Status: Needs work » Needs review

Status: Needs review » Needs work

The last submitted patch, 1: og-panels_pages_access_control_by_og_role-1780502-1.patch, failed testing.

joelpittet’s picture

Issue summary: View changes
Status: Needs work » Closed (outdated)

Drupal 7 reached end-of-life and the D7 version of Organic Groups is no longer being developed. To keep the issue queue focused on supported versions, we’re closing older D7 issues. If you still have questions about using Organic Groups on Drupal 7, feel free to ask. While we won’t fix D7 bugs anymore, we’re happy to offer guidance to help you move forward. You can do so by opening (or reopening) a D7 issue, or by reaching out in the #og channel on Drupal Slack.

If this issue is still relevant for Drupal 10+, please open a follow-up issue or merge request with proposed changes. Contributions are always welcome! 💙

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.