Re: [Cppcms-users] rbac and url
Brought to you by:
artyom-beilis
From: mawan s. <ma...@gm...> - 2015-10-09 11:21:04
|
Sorry Artyom , your message still in spam, so i late to read your response. I found application::init() method, this is virtual too. I think, i can to do chek with this method, but in this method , can i identify handler name? or assigned url mapping? and then will be compared to the db role. Thanks On Thu, Oct 8, 2015 at 6:06 PM, Artyom Beilis <art...@ya...> wrote: > Yes > > > http://cppcms.com/cppcms_ref/latest/classcppcms_1_1application.html#a8c884a9309d107237e8946446feba8f8 > > The application::main calls the dispatcher - it is virtual member > function. You can do global checks there and afterwards call the dispatcher > or original application::main > > Artyom > > ------------------------------ > *From:* mawan sugiyanto <ma...@gm...> > *To:* cpp...@li... > *Sent:* Thursday, October 8, 2015 1:47 PM > *Subject:* Re: [Cppcms-users] rbac and url > > Is there any method that called before execute handler ..? > > > > On Thu, Oct 8, 2015 at 5:42 PM, mawan sugiyanto <ma...@gm...> wrote: > > Dear All > > I want to build Role Base Action Control. In classic web, they use url > action (like handler in cppcms), and then control to user can or cannot do > the action. > > The problem > > I saw the source of cppcms use urldispatch::dispatch to run handler. Is > there any method that before url dispatched , it is not run the handler. So > i can control that user can run in next process or not based on information > during mapping url. > > Thankyou > > > Mawan > > > > > ------------------------------------------------------------------------------ > > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > > > > > ------------------------------------------------------------------------------ > > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > > |