mirror of
https://github.com/flarum/framework.git
synced 2025-02-21 07:50:24 +08:00
Ensure compatibility with DB table prefix
This commit is contained in:
parent
5f5ffc7fcb
commit
959f2b654c
@ -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));
|
||||
};
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user