Skip to content

Unable to archive others public polls #4410

@prauscher

Description

@prauscher

⚠️ 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

() => !props.poll.permissions.view && sessionStore.currentUser.isAdmin,

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?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions