flarum / flarum/issue-archive

[Flags] Selective tag pemission

Open
#82 0 comments 0 reactions 0 assignees View on GitHub
type/bug
Dominant language
No language data
Stars
0
Forks
0
PR merge metrics
No merged PRs in 30d

Description

## Bug Report

**Current Behavior**
If a user has permission to view flags in _some_ tags, but not others, details of a flag within a tag with no permission are still displayed in the flags notification dropdown. Note: I do not have permission to view flags in the example discussion

**Screenshots**
![image](https://user-images.githubusercontent.com/16573496/121256438-78189200-c8a4-11eb-8d7b-4d138767cae4.png)

**Environment**
- Flarum version: 1.0.2
- Website URL: http://discuss.flarum.org
- Webserver: [e.g. apache, nginx]
- Hosting environment: [e.g. shared, vps]
- PHP version: x.y.z
- Browser: [e.g. chrome 67, safari 11]

```
Output of "php flarum info", run this in terminal in your Flarum directory.
```

**Possible Solution**
I'll see about putting a PR together ;)

Contributor guide

Open the contributing guide

Research direction

Reproduce the issue in the flags notification dropdown with a user who can view flags in some tags but not others, using the reported selective tag permissions. Trace how the dropdown decides which flag details to display; done means flags from unauthorized tags are not shown while permitted-tag flags remain visible.

Written by the indexing model from the issue text.

Assessment

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.