omeka / omeka/plugin-Commenting

User role issues

Open
#57 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
PHP
Stars
4
Forks
5
PR merge metrics
No merged PRs in 30d

Description

My plugin settings are as follows:

Image

With a user set to Admin, I can see the comment section on the public page, both the form and existing comments.

With the user set to Researcher, I can't see the form, but I can see existing comments. The heading appears whether there are comments or not.

Image

With the user set to Contributor, I can see the form - but without the heading?

Image

I think what should be happening is that:
Admin shouldn't be able to see the comment form OR existing comments.
Contributor should be able to see the heading.
Researcher shouldn't see the heading if there are no comments. Or, we could show a "There are no comments." message under it.

If there's a reason for Admin to always have access to everything, it should be removed as options from the plugin settings.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the public comment visibility for Admin, Researcher, and Contributor with the plugin settings shown in the issue. Trace the role checks that control the comment form, heading, and existing comments; done means each role follows the proposed visibility rules, or the chosen Admin behavior is documented and consistently enforced.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
authorization
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.