mirror of
https://github.com/flarum/framework.git
synced 2024-11-25 09:41:49 +08:00
Simple forum software for building great communities.
40a78d302e
This helps to fix a bug in flarum-ext-tags where a user could not rename or edit the tags of their own discussion if it was in a restricted tag. This was due to the order of GetPermission event listeners – the logic that determines that a user *can't* perform an action because of a restrictive tag was running before (and thus instead of) the logic that determines that a user *can* edit their own stuff. The solution is to change the "catch-all" methods on Policies to "after" instead of "before" – that is, they will run only if the per-ability methods return null. We also simplify the GetPermission event by passing the model as a sole "argument", as I can't imagine any cases where we'll need more than one argument. |
||
---|---|---|
error | ||
js | ||
less | ||
migrations | ||
scripts | ||
src | ||
stubs | ||
tests | ||
views | ||
.editorconfig | ||
.gitattributes | ||
.gitignore | ||
.styleci.yml | ||
.travis.yml | ||
composer.json | ||
CONTRIBUTING.md | ||
LICENSE | ||
README.md |
Flarum Core
This repository contains Flarum's core code. If you want to set up a forum, visit the main Flarum repository.
Contributing
Flarum is open-source and we would love your help building it! Please read the Contributing Guide to learn how you can help.