Hey, in this case, we don't need to redirect. Permission denied as an error panel is sufficient.
Essentially we want handle_exception (or wrap_exception or whatever I called it) to catch the NovaUnauthorizedError. This will be a method of last resort - as we identify other places that need to explicitly catch the NovaUnauthorizedException we will add try/excepts there as well.
8 + except exceptions. NovaUnauthorize dError, e: error(request, 'Permission Denied') 'dashboard_ permission_ denied' )
9 + messages.
10 + return redirect(
Hey, in this case, we don't need to redirect. Permission denied as an error panel is sufficient.
Essentially we want handle_exception (or wrap_exception or whatever I called it) to catch the NovaUnauthorize dError. This will be a method of last resort - as we identify other places that need to explicitly catch the NovaUnauthorize dException we will add try/excepts there as well.