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:
@@ -82,7 +82,7 @@ class Model implements ExtenderInterface
|
||||
}
|
||||
|
||||
foreach ($this->scopeVisible as $callback) {
|
||||
$model::scopeVisible($callback);
|
||||
$model::addVisiblePostsScope($callback);
|
||||
}
|
||||
|
||||
foreach ($this->allow as $info) {
|
||||
|
Reference in New Issue
Block a user