Closed (fixed)
Project:
Drupal Commons
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
9 Oct 2011 at 23:10 UTC
Updated:
25 Jan 2012 at 15:10 UTC
Jump to comment: Most recent file
If a group administrator marks a wiki as "sticky" inside of a group, normal users cannot edit the post because they receive an error massage "You can only make posts sticky for a group you are an admin for.". See the attached screenshot.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | commons_core-group-sticky-prevents-edits-1304386.patch | 1.88 KB | mstef |
| sticky-wiki-error.jpg | 73.96 KB | cpliakas |
Comments
Comment #1
mstef commentedI see the problem. Working on a patch now.
The issue is that the code enforces that group stick only be used by group admins, despite default permissions not making the group sticky field visible. So, since it is sticky, on validation, it shows that a non group admin is saving it as sticky.
What I propose doing is only doing the validation if it's actually being changed to sticky - meaning that the node, as it stands, is currently not sticky.
Comment #2
mstef commentedPatch
Comment #3
ezra-g commentedLooks good and resolves the issue in my brief testing.
Committed - Thanks!
http://drupalcode.org/project/commons.git/commit/88ad83f
Comment #4
ezra-g commented