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
And then also be able to use it in the loaded apps:
packageApp::Useruse Dancer ':syntax';
### you only get here if you are logged in, but the next action is only available if you are an Editor
get '/'=> require_role Editor=>sub {
return'You are Editor :)';
};
true;
Just an Idea, have not seen any possibility to do that yet ... maybe I overlooked something?
The text was updated successfully, but these errors were encountered:
That would require hackery in Dancer's core itself, which I'm not sure is desireable.
Personally, if you have multiple apps loaded and want to protect all requests based on the app in use, I think I'd be inclined to use a before hook to implement the logic yourself (using the keywords provided by DPAE to check if the user is logged in / has a desired role).
I'll have a further think about this, but I'd like to avoid anything that would require changing Dancer's core at all.
It would be cool to be able to:
And then also be able to use it in the loaded apps:
Just an Idea, have not seen any possibility to do that yet ... maybe I overlooked something?
The text was updated successfully, but these errors were encountered: