feat: Restrict email_username column visibility to users with the Developer role.
This commit is contained in:
parent
abda97cbba
commit
10f69a6914
@ -36,7 +36,8 @@ public static function configure(Table $table): Table
|
|||||||
")
|
")
|
||||||
->html()
|
->html()
|
||||||
->searchable(['email', 'username'])
|
->searchable(['email', 'username'])
|
||||||
->sortable(),
|
->sortable()
|
||||||
|
->visible(fn () => auth()->user()->hasRole(RoleEnum::Developer)),
|
||||||
|
|
||||||
TextColumn::make('full_name')
|
TextColumn::make('full_name')
|
||||||
->label('Nama Lengkap')
|
->label('Nama Lengkap')
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user