@@ -20,7 +20,7 @@ public function viewAny(): bool
20
20
*/
21
21
public function view (User $ user , IzinKeluar $ izinKeluar ): bool
22
22
{
23
- $ allowedyear = (( session ('year ' ) == $ izinKeluar ->tahun ) );
23
+ $ allowedyear = (session ('year ' ) == $ izinKeluar ->tahun );
24
24
if (session ('role ' ) === 'kepala ' ) {
25
25
return $ allowedyear ;
26
26
}
@@ -47,7 +47,7 @@ public function create(User $user): bool
47
47
*/
48
48
public function update (User $ user , IzinKeluar $ izinKeluar ): bool
49
49
{
50
- $ allowedyear = (( session ('year ' ) == $ izinKeluar ->tahun ) );
50
+ $ allowedyear = (session ('year ' ) == $ izinKeluar ->tahun );
51
51
52
52
return $ allowedyear && ($ user ->id === $ izinKeluar ->user_id );
53
53
}
@@ -57,7 +57,7 @@ public function update(User $user, IzinKeluar $izinKeluar): bool
57
57
*/
58
58
public function delete (User $ user , IzinKeluar $ izinKeluar ): bool
59
59
{
60
- $ allowedyear = (( session ('year ' ) == $ izinKeluar ->tahun ) );
60
+ $ allowedyear = (session ('year ' ) == $ izinKeluar ->tahun );
61
61
62
62
return $ allowedyear && ($ user ->id === $ izinKeluar ->user_id );
63
63
}
@@ -67,7 +67,7 @@ public function delete(User $user, IzinKeluar $izinKeluar): bool
67
67
*/
68
68
public function restore (User $ user , IzinKeluar $ izinKeluar ): bool
69
69
{
70
- $ allowedyear = (( session ('year ' ) == $ izinKeluar ->tahun ) );
70
+ $ allowedyear = (session ('year ' ) == $ izinKeluar ->tahun );
71
71
72
72
return $ allowedyear && ($ user ->id === $ izinKeluar ->user_id );
73
73
}
@@ -77,7 +77,7 @@ public function restore(User $user, IzinKeluar $izinKeluar): bool
77
77
*/
78
78
public function forceDelete (User $ user , IzinKeluar $ izinKeluar ): bool
79
79
{
80
- $ allowedyear = (( session ('year ' ) == $ izinKeluar ->tahun ) );
80
+ $ allowedyear = (session ('year ' ) == $ izinKeluar ->tahun );
81
81
82
82
return $ allowedyear && ($ user ->id === $ izinKeluar ->user_id );
83
83
}
@@ -87,7 +87,7 @@ public function forceDelete(User $user, IzinKeluar $izinKeluar): bool
87
87
*/
88
88
public function replicate (User $ user , IzinKeluar $ izinKeluar ): bool
89
89
{
90
- $ allowedyear = (( session ('year ' ) == $ izinKeluar ->tahun ) );
90
+ $ allowedyear = (session ('year ' ) == $ izinKeluar ->tahun );
91
91
92
92
return $ allowedyear && ($ user ->id === $ izinKeluar ->user_id );
93
93
}
0 commit comments