You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following items have been added. Copy the properties in **src/Config/Auth.php**.
31
+
32
+
- `$permission_denied` and `$group_denied` are added to `Config\Auth::$redirects`.
33
+
- `permissionDeniedRedirect()` and `groupDeniedRedirect()` are added.
34
+
35
+
#### Fix Custom Filter If extends `AbstractAuthFilter`
36
+
If you have written a custom filter that extends `AbstractAuthFilter`. Now you need to add and implement method `redirectToDeniedUrl()` to your custom filter.
37
+
The following example is related to the above explanation for **group** filter.
38
+
```php
39
+
/**
40
+
* If there is no necessary access to the group,
41
+
* it will redirect the user to the set URL with an error message.
42
+
*/
43
+
protected function redirectToDeniedUrl(): RedirectResponse
0 commit comments