Download & Extend

Option to make audience mandatory for everyone

Project:Organic Groups Mandatory Group
Version:4.7.x-1.x-dev
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:closed (works as designed)

Issue Summary

The 'Audience required' options were recently changed so that administrators automatically had the ability to override them. It would be nice if we could make this a configuration option - we have a situation were we want everything to go into at least one group, even if posted by administrators.

Suggested solution: 1) add configuration option to og settings "Allow users with 'administer nodes' permission to override" underneath the 'Audience required:' heading 2) check for this when setting $required variable.

Comments

#1

Status:active» closed (works as designed)

if you want this, make a custom module that uses hook_form_alter to set #required on that form element. not going to do this in og.

#2

Title:Create configuration option to stop admins overriding required groups» Option to make audience mandatory for everyone
Project:Organic groups» Organic Groups Mandatory Group
Version:master» 4.7.x-1.x-dev
Component:og.module» Code
Status:closed (works as designed)» active

No problem Moshe, thanks for the quick response. Thinking this through a bit further anyway, it's maybe something that fits into the og_mandatory_group module, if anywhere.

Just to add a little more information... right now we give content editors the 'administer nodes' permission in 4.7 to let them edit anything they need (in 5.x this wouldn't be a requirement as they could be given only the necessary 'edit [content type]' permissions). Despite them being content editors, we'd still like these people to post to at least one group when posting content.

Previously this just happened in organic groups module with the 'Audience required' field, but this has recently been changed to allow people with 'administer nodes' to ignore that setting - and I think rightfully so, as people who can administer nodes should generally have more flexibility. But that doesn't help us require a group for all users to post into (which doesn't need to be the mandatory group, but could be any).

Would it be possible to add an option in og_mandatory_group that forced users to choose a group by implementing the method Moshe mentions above? We could always create this as a separate tiny custom module if it's not accepted for og_mandatory_group either :)

#3

Status:active» closed (works as designed)

mandatory group is about people being members of a group., not about posts being affiliated in a group. you will need to go the custom module way.

#4

/me hangs head in shame at trying again and goes off to take custom module route :)