Browse Source

fix: detail mutation error 403

Muhammad Iqbal Afandi 3 years ago
parent
commit
22e45f9047
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      app/Policies/TopUpPolicy.php

+ 1
- 1
app/Policies/TopUpPolicy.php View File

@@ -30,7 +30,7 @@ class TopUpPolicy
30 30
      */
31 31
     public function view(User $user, TopUp $topUp)
32 32
     {
33
-        return $user->role_id === 3;
33
+        return $user->role_id !== 3;
34 34
     }
35 35
 
36 36
     /**