Closed (outdated)
Project:
Group
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
27 Mar 2015 at 15:43 UTC
Updated:
12 Sep 2023 at 11:47 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
pilch57 commentedComment #2
kristiaanvandeneyndeSeeing stuff you can't interact with sounds like a bug.
Will look into it once my schedule doesn't require 48 hours in a day :)
Comment #3
juagarc4 commentedHello,
May be adding a new permission it's a good form to do it.
I've made a path for it.
Comment #4
ctrladelThis issue probably doesn't call for a new permission. If we take a look at the current state of how the group field is displayed on node creation

The original issue is probably about case 5 or 9 where the user can only create global nodes but an empty select box is still shown on the node creation page. Checking if the options for the group field are empty and if it is then unsetting the form element for group is all that's needed to fix this issue. I've attached the patch to do that.
While running through all the cases I came across a couple other issues that could be addressed.
Comment #5
kristiaanvandeneyndeVery helpful feedback and patch Vulsutyr! I'll try to look into it asap.
If I recall correctly, this is out of my hands because Group Node provides node creation access through the access system defined by Node. Because of this, people will have access to the node creation paths defined by Node.
I could try to unplug Group Node from the create rights seeing as we have a dedicated Group Node creation path. This could lead other Node access modules to freak out, though, because we're not being 100% honest about node creation access then.
Good UX improvement, agreed.
Hmm, somewhat agreed. Could be annoying if the user doesn't know all the groups he is in.
Nice catch! The problem is that the group permission system is completely bypassed by that permission (duh :-) ). I could perhaps make it the same like Subgroup: showing the permissions with a warning that you still need to enable the node types under the group type's config.
Comment #6
johnennew commentedThe original issue is solved by the patch in #4 so I am setting to RTBC.
The larger patch at the URL below also solves this and possibly a number of the other issues. I am going to go through each of the other items listed above and create new issues for each.
#2317195: Allow more than one parent by node / subgroup
Comment #7
johnennew commentedPatch in #4 fixes the issue.
Comment #8
johnennew commentedThis is added in #2317195: Allow more than one parent by node / subgroup
Comment #9
johnennew commentedCreated new issue to deal with this #2600084: Restrict which node types can be added to groups
Comment #10
Pierre.Vriens commented@Kristiaan: where does this issue fit in the 7.1.0 roadmap? Can you add it please in the appropriate spot in that (meta) issue? @CtrlADel: can you think of something to fix the broken link in comment nr 4 (the png file still exist though)?
Comment #11
kristiaanvandeneyndeOh wow, I must have lost track of this one. I'd say this one should be reviewed after the patch from #2317195: Allow more than one parent by node / subgroup goes in. It may need a reroll or will be fixed by the changes made in that issue.
Thanks for spotting this Pierre!
Comment #12
ctrladelFixed the image, it was pointing to the wrong file name some how.
Comment #13
Pierre.Vriens commentedKristiaan, WHEN do you think that patch you mentioned in #11 will go in? Reason why I ask: finalize D7 release ...
Comment #14
Pierre.Vriens commentedComment #15
pribeh commentedAnybody able to add in a weight function while you're at it (or should that be a separate issue)?
Comment #16
noopal commentedHi, I still have this issue with current release.
In my group permissions I have only 1 node type where I have selcted create content in group. But when a user with that permission is creating a node of any type the Parent group field shows on the node edit/creation form. Looks really messy.
How can I remove this field on pages where it is not applicable?
Thanks
Comment #17
kristiaanvandeneyndeThe Drupal 7 version is no longer supported, cleaning up the issue queue.