consuldemocracy / consuldemocracy

Consul Democracy - Open Government and E-Participation Web Software

Home Page:https://consuldemocracy.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Legislation Debate can comment on closed process

coslajohn opened this issue · comments

There is some strange inconsistent behaviour regarding Open Answers to Legislation Debates

Sometimes, when the debate process is closed it is still possible to Comment/Leave an open answer when looking at the Most Voted tab

image

If you click on the Newest First or Oldest First tab it shows the correct behaviour as below

image

@javierm @coslajohn

This seems to be expected behaviour for admins and moderators - https://github.com/consuldemocracy/consuldemocracy/blob/master/app/controllers/comments_controller.rb#L110

For other roles it seems to work as expected.
Screenshot 2023-10-24 at 12 23 53

Currently once the legislative debate is closed and if in the other tab which has the respective debate page already in open, without refreshing the debate page an user is allowed to answer the debate and if the user is admin/moderator due the above if condition the backed validation allows the comment.
Do you guys want me modify the UI to explicitly allow the admins and moderator to post answers i.e even after refreshing the page. Or disable this option for admins and moderators as well?