#840 - 'give points' button shows up when viewing posts in form when privilege 'use points' is turned off..

  • By
  • Added
  • 7 views
Identifier #840
Issue type Minor issue (breaks specific functionality)
Title 'give points' button shows up when viewing posts in form when privilege 'use points' is turned off..
Status Completed
Handling member Chris Graham
Addon points
Description title is self descriptive.

To fix this, just need to change the 'if' line in sources\cns_topicview.php , in function cns_render_post_buttons to include the has_specific_permission part at the end of the following as such:

if ((addon_installed('points')) && (!is_guest()) && (!is_guest($_postdetails['poster'])) && (has_specific_permission($_postdetails['poster'],'use_points')) )


Steps to reproduce

Funded? No
The system will post a comment when this issue is modified (e.g., status changes). To be notified of this, click "Enable comment notifications".

Rating

Unrated