-
Notifications
You must be signed in to change notification settings - Fork 673
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use canComment for discussion reply permissions #8458
Comments
canComment() sounds appropriate. |
@juho-jaakkola Is this still an issue/ |
Yes. The current code is just checking if user is allowed to write to the group, but not if user is allowed to post a reply to the discussion: https://github.com/Elgg/Elgg/blob/2.0/mod/discussions/views/default/resources/discussion/view.php#L41 |
jeabakker
added a commit
to jeabakker/Elgg
that referenced
this issue
Nov 28, 2017
1 task
jeabakker
added a commit
to jeabakker/Elgg
that referenced
this issue
Nov 30, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I have encountered a problem after filtering permissions to only allow group admins to create discussion topics, other users were not able to post replies.
This line here: https://github.com/Elgg/Elgg/blob/1.x/mod/groups/lib/discussion.php#L234 should perhaps be checking either canComment() or canWriteToContainer() on the topic, as ability to create new discussion topics is different from posting repies. Not sure if there are places where this needs to be changed.
The text was updated successfully, but these errors were encountered: