Project:Content Type Administration by Organic Group
Version:5.x-1.x-dev
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

Would it be possible to allow for more than one group owner, so the original owner could upgrade some other users to their status? Also is it possible to go even further than this and get the group owner to allow some users to have some extra control on the group i.e. be able to use more content types than the default user can do but not complete control like the group owner?

By the way thanks for the great module, it's really useful.

Comments

#1

Status:active» postponed

The answer to your first question, if I recall the code of this module correctly, is that you should already be able to do this. In groups, the owner can assign other users as admins, which places a 1 in the is_admin column of the DB table for group memberships. I don't recall what that table is named. Anyway, I think my code checks against is_admin. So try to add users as admins for the groups you are working with and let me know if that works or not. If not, I'll take a look at the code again and see if there are easy changes to make. (From the groups listing page, click on subscriptions (I think it's a number in a column) to list the users of a particular group and assign them as admins).

As for multiple levels of allowed content types within a single group, that is quite a bit more complicated. However, on my list of modules to write is one that will allow group owners to assign roles that will have effect only in that group (a possible expansion of one or two existing modules). Perhaps your request would best be included in this module instead? In it, I could check to see if the Content Type Administration by Organic Group module is installed and active, and if so, expose controls to add the functionality you suggest. --Or, I could write a separate module that would mesh with the two. In any case, I don't think it is a straight forward addition to this module itself since we're talking about group-specific roles, or at least assigning users to lists of some kind. Have you looked at the subgroup module? I wonder if that would work for you. If the subgroups behave like regular groups, then each one could have its own allowed content types and the main group owner could have each subgroup a 'closed' group where he could assign users to each, effectively giving them permission to use different content types.

So I'm going to mark this feature request as postponed, because I like it, but can't get to it soon. Meanwhile, I hope my suggestion works for you. And don't forget to let me know if you're able to assign users as admins and if they are able to see all content types that the owner sees.

#2

Thanks, got the upgrade to admin thing to work. Would be really interested in your organic group roles idea.

#3

It seems group admins CANNOT currently use ALLOWED and non-ACTIVATED content types. I'll change that.

#4

Status:postponed» fixed

Fixed so that group admins can use ALLOWED but DEACTIVATED content types. This means that group members can view content that only the group admin can create. Hopefully this works as intended. Group members can still create ACTIVATED types that are activated by the group admins.

Look for an update to the dev branch with this included soon.

So if you want, for example, the blog content type to be available only to group admins, you would ALLOW it and then the group admin simply would not ACTIVATE it in their own group context. If you aren't giving group admins control of their content types (via the "Disallow changes by all group owners" checkbox), then you have total control over this. Perhaps in the future I should add a third column of checkboxes in the "Assign Content Types" tab which locks each type for use only by group admins. The column would be called "Group admin only" and would go between "Allow" and "Require". It would be the same as locking it to ALLOWED and DEACTIVATED.

Also, my changes should also allow the site admin, user 1, to create any content type anywhere, both inside and outside of groups.

However, all group admins share the same power. At some point, I will be creating an OG roles module or adding to the existing one by a similar name. I haven't checked it out yet to see what it does.

#5

Status:fixed» closed (fixed)