fix(Core): fix bug is lock
This commit is contained in:
@@ -25,7 +25,7 @@ class SectionController extends Controller
|
||||
|
||||
$section->getCollection()->transform(function ($section) {
|
||||
unset($section['book_id']);
|
||||
$section['is_locked'] = auth()->user()->isSubscriber() !== false ? false : Law::where('is_locked',$section['law_id'])->first()?->is_locked;
|
||||
$section['is_locked'] = auth()->user()->isSubscriber() !== false ? false : Law::where('id', $section['law_id'])->first()?->is_locked;
|
||||
|
||||
unset($section['law_id']);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user