Uploaded image for project: 'Commenting (closed)'
  1. Commenting (closed)
  2. MGNLCMNT-57

Commenting form is showing to all users if there is no comments posted

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • Neutral
    • None
    • 1.1.3, 1.1.4
    • client-ui, security, Template
    • None

    Description

      Commenting form should not be shown to users that has no rights to post comments. In PageComments class there is method "isAllowedToPost" that check is user has right to post. But in case where there are no comments posted, it returns true value so form will be shown to all users.

      public boolean isAllowedToPost() {
      if (getThread() == null)

      { return true; }

      else

      { return super.isAllowedToPost(); }

      }

      Maybe this feature is planned to restrict posting comments to some of users by checking user rights to post on specific comments thread but in that case maybe there is need of another method that will be used in comments.inc.ftl only for showing the form.

      If that is not the idea, this method should only check user rights for all comments thread in forum.

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

                Unassigned Unassigned
                zarko.ivanoski Zarko Ivanoski
                Votes:
                1 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: