Closed (fixed)
Project:
Content Type Administration by Organic Group
Version:
5.x-1.5
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
18 Feb 2008 at 22:01 UTC
Updated:
21 Feb 2008 at 20:13 UTC
Your module has 'administer og content types' access type. So, It would be perfect if module show it's tab on the group page to user who has this permission but not someone else. I've made changes and created patch. It's in attach.
| Comment | File | Size | Author |
|---|---|---|---|
| og_content_type_admin.patch | 486 bytes | neochief |
Comments
Comment #1
rconstantine commentedIt would appear you missed this code, just before the lines in your patch:
if (_og_content_type_admin_is_admin($group)) {which takes care of permissions. Your patch requires that users be assigned a role which means that in 'normal' installs where all users can create groups, those users would not be able to maintain their own group's content types unless assigned this role. Alternatively, you saw the line I quoted but in your installations must want a double redundancy or something. I don't think that is appropriate for the general uses of this module, so I won't be adding your change. As that menu item now stands, only site admins and group owners should be seeing the tab. It works fine in all of my installs.
Comment #2
neochief commentedOh, I found the great checkbox "Disallow changes by all group owners" that I missed before in settings of the module. Thanks, I really did the empty work.