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 )

Viewed 9523 time(s), 4 post(s) 9/10/2014 6:43:06 PMby Samtg
Samtg

Samtg

9/10/2014 6:50:32 PM
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?

This content has not been rated yet. 
440 Reputation 38 Total posts
mzilic

mzilic

9/11/2014 9:42:13 AM
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
This content has not been rated yet. 
2218 Reputation 300 Total posts
Samtg

Samtg

9/11/2014 6:15:29 PM
Yeah, that would be good.  Any ideas would be great.
This content has not been rated yet. 
440 Reputation 38 Total posts
mzilic

mzilic

9/12/2014 9:13:31 AM
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
This content has not been rated yet. 
2218 Reputation 300 Total posts