Skip to content
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

Comment and reply permissions overrides #10022

Closed
wants to merge 3 commits into from
Closed

Comment and reply permissions overrides #10022

wants to merge 3 commits into from

Conversation

hypeJunction
Copy link
Contributor

feat(discussions): discussion topics now have their own class

feat(comments): entities can now inherit canComment permissions
Extending classes can now explicitly pass default canComment permissions value to the parent class

feat(discussions): adds a shortcut ElggDiscussion::canReply method

@hypeJunction hypeJunction added this to the hackathon milestone Aug 19, 2016
@hypeJunction hypeJunction reopened this Oct 7, 2016
@hypeJunction
Copy link
Contributor Author

Reopening. This needs to go in in some form

@hypeJunction hypeJunction modified the milestones: Elgg 3.0.x, hackathon Oct 7, 2016
@mrclay
Copy link
Member

mrclay commented Oct 8, 2016

Considering the desire to make replies into regular comments, does this make that harder?

@hypeJunction
Copy link
Contributor Author

$entity->disable_comments !== true

* @param int $user_guid GUID of the user to leave a reply
* @return bool
*/
public function canReply($user_guid = 0) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why aren't we using this anywhere?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR is adding it

@hypeJunction
Copy link
Contributor Author

Oh. I sorry I misunderstood your comment. I thought this was thr PR about disabljng comments.
Not sure. Depends what the strategy is for makjng replies comments.

@hypeJunction
Copy link
Contributor Author

Replaced by #10465

@hypeJunction hypeJunction deleted the disc-classes branch October 17, 2016 06:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants