nextcloud / nextcloud/server

Show an error message when accessing an app that your user doesn't have access to

Open
#21,455 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

1. to develop design enhancement feature: apps management
Dominant language
PHP
Stars
36.9k
Forks
5.2k
Avg merge
2d 3h
Merged PRs (30d)
713

Description

Problem: Missing error notice when registered user is atempting to vote in polls, but is not a member of group with polls enabled.

Current behavior: In case registered user get a link to the poll and logs in AND does not belong to the group which is allowed to use polls (see settings in app store) he is redirected without any warning to "Files" app (Polls app does not appear at all). This is very confusing.

Expected behavior: In case registered user get a link to the poll and logs in AND does not belong to the group which is allowed to use polls (see settings in app store), an error notice should appear "You do not have access to polls. Please contact your administrator."

Note: I have been warned (in https://github.com/nextcloud/polls/issues/979) this is "core-related" bug, not directly related with "Polls" app.

System info: NextCloud 18.0.4; Polls v1.4.3

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 by tracing the core login and redirect flow when a registered user opens a Polls link without membership in the permitted group; the issue reports that the user is sent to Files. Confirm the access check and add the requested notice, then verify that this scenario displays “You do not have access to polls. Please contact your administrator.”

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
authorization
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 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.