Controlling access to "My Account"

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
5/21/2008 7:29:14 PM
Gravatar
Total Posts 45

Controlling access to "My Account"

Is there a setting for controlling access to the UserProfile.aspx page (i.e. via the "My Account" link) based on user account/role? I'd like to be able to set up demo user accounts but prevent these users from changing their password or any other account profile settings.

5/22/2008 11:49:04 AM
Gravatar
Total Posts 18439

Re: Controlling access to "My Account"

Hi,

I can easily enough add a config setting that would disable the My Account page for everyone. I will do that today and it will be in svn trunk by tonight.

There will be a Web.config setting named AllowUserProfilePage. It will default to true but you can set it to false for your needs. This will be global to the installation, not site specific. Admin will still be able to manage users from the member list page.

Hope that satisifies your use case.

Best,

Joe

5/23/2008 12:34:50 AM
Gravatar
Total Posts 45

Re: Controlling access to "My Account"

Well, this implementation would *almost* satisfy our use case if the users in the specialized roles (i.e. Administrators, Role Administrators, Content Administrators, Content Publishers, or Content Authors) could still have acess to their profile.

Ideally, this would be a user-specific or role-specific setting, but then it probably would have to be stored in the users or roles table, unless you come up with some complex web.config configuration structure with nested elements or elements with multiple attributes.

5/23/2008 6:48:47 AM
Gravatar
Total Posts 18439

Re: Controlling access to "My Account"

Administrators can still manage their own and anyone elses profile by clicking the gear icon next to the user name on the Member List.

This use case is really an edge case so I tried to provide you a quick easy solution, but its not a priority at the moment to put more effort into a more complex soluition for this use case. You can easily now create a demo site with predefined demo users and no-one except admin can change profiles.

What you can't currently do is create demo accounts within a real site without also limiting what other users can do by disabling the profile.

If this use case is important to you, you can consider hiring me to implement a more advanced solution. This use case is not important to me so its not a priority but could become a priority if a paying customer wants it.

Best,

Joe

You must sign in to post in the forums. This thread is closed to new posts.