Namespaced dashboard ignoring on_unauthorized_access
#8299
Replies: 1 comment
-
I figured it out, it was not the fault of activeadmin at all, I had an errant error rescue in my controller action that was causing the issue. Feel like a complete doof |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am trying to create a dashboard separate from our
admin
namespace,editor
, which is working nearly perfectly except when handling unauthorized access attempts. I have defined everything indicated in the docs, and for the existingadmin
namespace it works fine, but for an unauthorized user myaccess_denied
method defined in myApplicationController
is never hit and I get an infinite loop of redirects.My config:
From my
ApplicationController
in which I defined a separate authentication method just to test out, which does run as expected when accessing theeditor
namespace:My auth adapter, which also runs as expected when accessing the
editor
namespaceNothing I try works, the
editor
namespace continues to ignoreaccess_denied
and gets stuck in the redirect loop as I mentioned..I even tried overriding the method I suspected to be responsible for calling the
on_unauthorized_access
method and it did in fact hit my override when accessing theadmin
namespace but does not hit it when I try and access theeditor
namespace.Is there something glaringly obvious with my configuration? I've read and re-read the docs many times and from what I can tell this should be working.
Beta Was this translation helpful? Give feedback.
All reactions