Simple forum software for building great communities.
Go to file
Toby Zerner 40a78d302e Fix permission logic priorities
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.
2016-05-28 09:35:08 +09:30
error #719 Fixed PermissionDeniedException 2016-01-07 19:09:57 +01:00
js Fix notifications dropdown not showing 2016-05-27 13:53:50 +09:30
less Simplify deleted post toggle CSS 2016-05-27 13:56:56 +09:30
migrations Applied fixes from StyleCI 2016-02-25 22:09:39 -05:00
scripts Clean up some old code 2015-10-22 12:25:22 +10:30
src Fix permission logic priorities 2016-05-28 09:35:08 +09:30
stubs Refactor the web app bootstrapping code 2016-05-26 19:04:24 +09:30
tests adding new tests to cover api handlers, part 1 of #245 and #74 2016-03-03 11:00:11 +01:00
views Refactor the web app bootstrapping code 2016-05-26 19:04:24 +09:30
.editorconfig Clean up editorconfig, eslint, npm dependencies 2015-09-04 12:11:34 +09:30
.gitattributes Include the extension stub's .gitignore file 2015-08-29 18:29:33 +09:30
.gitignore Added some tests for the database setting repository 2015-09-28 15:34:32 +01:00
.styleci.yml Simplify StyleCI config 2016-02-26 13:47:17 +10:30
.travis.yml Travis: Do not run PhpUnit through Composer 2016-03-21 23:12:09 +09:00
composer.json Update TextFormatter to next release 2016-05-23 22:48:59 +09:00
CONTRIBUTING.md Update readme/contributing 2015-11-01 16:00:25 +10:30
LICENSE Update year range in LICENSE 2016-01-02 07:08:58 +01:00
README.md Update readme/contributing 2015-11-01 16:00:25 +10:30

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.