1
0
mirror of https://github.com/flarum/core.git synced 2025-08-17 13:54:18 +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 810f79ee77
commit d414ee33ed
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) {