? orus casino? bodog? ruleta? luckia? betano? sportium? spin casino? stakes? 3 reyes? 888? lottoland? coolbet? 777 casino? gana777? betfair? bwin? yak casino? ivy casino? oddschecker? red casino? netbet? william hill? vip casino? rey casino? marathonbet? dafabet? sol casino? 1bet? winland? bet777? parimatch? 18bet? 888casino? campobet? mostbet? ganabet? rushbet? betcris? betsson? lucky? novibet? winner? winpot? betmaster? betmexico? cancun? playcity? strendus? pokerstars? codere? caliente? fun88? bbrbet? 1win? 10bet? betway? pin up? spinbet? 7cslot? pickwin? spin bet? mr fortune? w88? pragmatic? gamdom? crasher? jojobet? betmex? bcasino? foliatti? winner mx? bets 10? big bola? bet master? inbet? 7slots? lucky day? m777? mexplay? luckydays? bet caliente? 1x? plinko

Forum


HomeHomePremiumPremiumAdministrationAdministrationPermissions and force login for a pagePermissions and force login for a page
Previous
 
Next
New Post
11/23/2015 8:31 AM
 

Hi there,

I work with DNN for a while but I'm wondering what's the best way to implement a very simple and common scenario.

I want a page, let's say "Downloads", to be visible for all users in the menu and when the user click on this page :

 - If the user is not logged in, I want to display the login page to force the user to be registered and logged in order to access this page.

 - If the user is logged in, of course the page displays properly.

The only way I could come up with is to use module's permissions and to hide/show the page's modules and the login module according to the user's role.

Can I do this with page permissions and 'redirects' to the login page if the user is not logged in ?

I really would like to use a page's permissions level, plus this feels more natural rather than using module's permissions.

Best Regards,

Stéphane.

 
New Post
11/24/2015 4:36 AM
 

Hi Stéphane,

As soon as I started reading your question, the solution was coming in mind already. But then you said you already do that.

Well, I don't see a way around that and I think you are already implementing the best solution.

Put it simply: If you restrict access to a page, that page will NOT show up in the menu, not even to ask you to login.

Don't see a way around that unless a custom solution is created just to handle that scenario, but I don't think that's the way you should go.

I think your solution is the best readily available. I have personally implemented that solution many times.

Best regards,

Aderson

 
Previous
 
Next
HomeHomePremiumPremiumAdministrationAdministrationPermissions and force login for a pagePermissions and force login for a page



Try FREE
30 days money back guaranteed