fix(Core): fix bug is lock
This commit is contained in:
@@ -24,7 +24,7 @@ class ChapterController extends Controller
|
||||
|
||||
$chapters->getCollection()->transform(function ($section) {
|
||||
|
||||
$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']);
|
||||
unset($section['section_id']);
|
||||
|
||||
Reference in New Issue
Block a user