mirror of
https://github.com/flarum/core.git
synced 2025-08-04 15:37:51 +02:00
Ensure compatibility with DB table prefix
This commit is contained in:
@@ -63,7 +63,7 @@ class PostPolicy extends AbstractPolicy
|
||||
return function ($query) use ($actor) {
|
||||
$query->selectRaw('1')
|
||||
->from('discussions')
|
||||
->whereRaw('discussions.id = posts.discussion_id')
|
||||
->whereColumn('discussions.id', 'posts.discussion_id')
|
||||
->where($this->canApprovePosts($actor));
|
||||
};
|
||||
}
|
||||
|
Reference in New Issue
Block a user