MonoX support board

Start the conversation, ask questions and share tips and solutions with fellow developers.

Non-registered users can only browse through our support boards. Please register now if you want to post your questions. It takes a second and it is completely free. Alternatively, you can log in without registration using your credentials at major sites such as Google, Microsoft Live, OpenId, Facebook, LinkedIn or Yahoo.

Permissions  (Mono Support )

11033 put(a) pogledan, 4 odgovor(a) 10.9.2014. 18:43:06Kreirao(la) Samtg
Samtg

Samtg

10.9.2014. 18:50:32
If we want to set permissions on certain urls, how would you change it to only friends (not just any users)?  Also, are there permissions to web controls that can be set up?

Ovaj sadržaj još nije ocijenjen. 
440 Reputacija 38 Ukupno objava
mzilic

mzilic

11.9.2014. 9:42:13
If we want to set permissions on certain urls, how would you change it to only friends (not just any users)?
MonoX doesn't support this out of the box. This would require you to implement custom security checks on your pages. Please let us know if you require a few ideas on how to implement this.

Also, are there permissions to web controls that can be set up?
You can set view permissions on certain roles.

Regards,
Mario
Ovaj sadržaj još nije ocijenjen. 
2218 Reputacija 300 Ukupno objava
Samtg

Samtg

11.9.2014. 18:15:29
Yeah, that would be good.  Any ideas would be great.
Ovaj sadržaj još nije ocijenjen. 
440 Reputacija 38 Ukupno objava
mzilic

mzilic

12.9.2014. 9:13:31
Hello,

Yeah, that would be good.  Any ideas would be great.
I recommend that you create a new BasePage and inherit MonoX's own BasePage then override AllowAccess method and insert your custom logic in there. Example:

protected override bool AllowAccess()
{
    bool allowAccess = base.AllowAccess();
     // custom logic goes here
    return allowAccess;
}
Regards,
Mario
Ovaj sadržaj još nije ocijenjen. 
2218 Reputacija 300 Ukupno objava