feat: tambah role editor, workflow post, leaderboard, rekap kehadiran, kategori kas dengan type, seeder lengkap

This commit is contained in:
2026-04-05 06:21:16 +07:00
parent cde63da358
commit 6c23cc8660
40 changed files with 2432 additions and 129 deletions
@@ -23,7 +23,7 @@ class PostResource extends Resource
// Label dinamis sesuai role
public static function getModelLabel(): string
{
return auth()->user()?->can('ViewAny:Post') && auth()->user()?->can('Update:Post')
return auth()->user()?->can('Publish:Post')
? 'Artikel'
: 'Artikel Saya';
}
@@ -32,7 +32,7 @@ class PostResource extends Resource
{
$query = parent::getEloquentQuery();
if (auth()->user()?->can('Update:Post')) {
if (auth()->user()?->can('Publish:Post')) {
return $query;
}