onlyAvailableForRoles option does not work properly

This is the place to report bugs and get support. When posting in this forum, please always provide as much detail as possible.

Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum, do not report it as a bug.

This is the place to report bugs and get support

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.
Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum.
This thread is closed to new posts. You must sign in to post in the forums.
1/19/2007 2:32:51 PM
Gravatar
Total Posts 18439

Re: onlyAvailableForRoles option does not work properly

I like onlyAvailableForRoles and onlyVisibleForRoles better than onlyExistsForRoles and onlyHandledForRoles

I've implemented this in svn.

I'll update the documentation as soon as I get a chance.

Thanks,

Joe
1/22/2007 6:43:47 AM
Gravatar
Total Posts 488

Re: onlyAvailableForRoles option does not work properly

I did not use onlyVisibleForRoles yet, but I have tested onlyAvailableForRoles once more.
Now it works except one issue.

I have a testing profile config as I showed above. I set visibleToAnonymous="true" for both of them, but still see "Some information is not shown because you are not logged into this site." message when viewing user profiles without login (all the profile properties are available as they should be).
1/22/2007 1:33:33 PM
Gravatar
Total Posts 18439

Re: onlyAvailableForRoles option does not work properly

If there are any properties marked as visibleToAnonymous=false and visibleToAuthenticated = true, the message will be displayed. I did modify it today so that if the property has roles specified in the onlyVisibleToRoles setting then I don't count that in deciding whether to display the message because I can't assume that if the user logs in he will be in a role that allows viewing the property.

There are several properties in mojoProfile.config that are marked as only visible to authenticated users, therefore anonymous users see this message. This is designed to encourage people to register and login.

Joe
1/23/2007 6:38:10 AM
Gravatar
Total Posts 488

Re: onlyAvailableForRoles option does not work properly

Finally it all works, thanks.
You must sign in to post in the forums. This thread is closed to new posts.