nextcloud / nextcloud/polls

Unable to archive others public polls

Open
#4,410 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

investigate
Dominant language
JavaScript
Stars
284
Forks
91
Avg merge
4d 3h
Merged PRs (30d)
50

Description

⚠️ This issue respects the following points: ⚠️
  • This is a bug, not a question or a configuration/webserver/proxy issue.
  • This issue is not already reported on Github (I've searched it).
  • I agree to follow Nextcloud's Code of Conduct.
What went wrong, what did you observe?

As an administrator I get to see the Admin list of Polls, which lists pretty much all polls not archived yet. To some of them I might be invited as user, others might even be public. For private polls where I am not invited, I get to see the admin menu with options to archive each poll. However, for polls my user may see anyways (e.g. which I am invited to or which are public), I only see the option to clone a poll, not to archive or take over this poll.

What did you expect, how polls should behave instead?

As administrator I should be able to archive any poll (which is not yet archived).

What steps does it need to replay this bug?
  1. Create two users: admin (with admin privileges) and user
  2. as user: create a public poll
  3. as admin: show administrative poll list, see the created poll, open menu and only see the option to
Affected polls version

8.5.0

Installation method

Installed/updated from the appstore (Apps section of your site)

Installation type

First time installation

Can you rule out that any extension you use is involved in the issue?
  • I have checked all browser extension
Which browser did you use, when experiencing the bug?
  • Firefox
  • Chrome
  • Chromium/Chromium based (i.e. Edge)
  • Safari
  • Other/Don't know
Other browser

No response

Add your browser log here

Additional client environment information

No response

NC version

Nextcloud 31

Other Nextcloud version

No response

PHP engine version

Other/Don't know

Other PHP version

No response

Database engine

Other/Don't know

Database Engine version or other Database

No response

Which user-backends are you using?
  • Default user-backend (database)
  • LDAP/ Active Directory
  • SSO - SAML
  • Other/Don't know
Add your nextcloud server log here

Additional environment informations

Hosted NextCloud at Hetzner

Configuration report

List of activated Apps

Nextcloud Signing status
No errors have been found.
Additional Information

Probably the issue is at https://github.com/nextcloud/polls/blob/f35ec944833dfc157d3fe996e34eee354892e377/src/components/PollList/PollItemActions.vue#L41

If I understand this correctly, to show the archive button either adminAccess must be true (for which poll.permissions.view must be false) or poll.permissions.edit must be true. If a user has the view permission, but not the edit permission, the archive options are always hidden, or am I wrong?

Contributor guide

Open the contributing guide

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 at src/components/PollList/PollItemActions.vue around line 41 and reproduce the issue with an administrator viewing a public poll created by another user. Inspect how adminAccess and poll.permissions.view/edit control the actions. Done means an administrator can see and use the archive action for any unarchived poll, including public polls.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.