⚠️ This issue respects the following points: ⚠️
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?
- Create two users: admin (with admin privileges) and user
- as user: create a public poll
- 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?
Which browser did you use, when experiencing the bug?
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?
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?
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?
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?
Which browser did you use, when experiencing the bug?
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?
Add your nextcloud server log here
Additional environment informations
Hosted NextCloud at Hetzner
Configuration report
List of activated Apps
Nextcloud Signing status
Additional Information
Probably the issue is at
polls/src/components/PollList/PollItemActions.vue
Line 41 in f35ec94
If I understand this correctly, to show the archive button either
adminAccessmust be true (for whichpoll.permissions.viewmust be false) orpoll.permissions.editmust be true. If a user has theviewpermission, but not theeditpermission, the archive options are always hidden, or am I wrong?