1
0
mirror of https://github.com/flarum/core.git synced 2025-07-23 09:41:26 +02:00

Make traits more generic

Type hinting User should take place in the callbacks. Theoretically
these traits could be used for another project now, where something
else has permissions (like a Sheep class, or a number)
This commit is contained in:
Toby Zerner
2015-07-01 16:49:40 +09:30
parent 52e55bd503
commit c588e55070
3 changed files with 6 additions and 10 deletions

View File

@@ -82,7 +82,7 @@ class Model implements ExtenderInterface
}
foreach ($this->scopeVisible as $callback) {
$model::scopeVisible($callback);
$model::addVisiblePostsScope($callback);
}
foreach ($this->allow as $info) {