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.
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.
Hello, I was wondering if someone could point me in the right direction for utilizing mojo's permission system when developing modules. We're creating custom forms. When the public accesses the form we need to collect certain information, but if a registered (and manually verified) user access the form we need to collect different information. So basically we just need to check if the user is part of a specific user group, and if so hide one panel and show another one. Thanks in advance!
string roleName = "yourrole";
if(WebUser.IsInRole(roleName) { ... }
else { ... }
Hope that helps,
Joe
Thanks Joe, you're the best! That's why I continue to promote mojoPortal!