Roles entered the site user

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.
7/23/2008 5:31:28 AM
Gravatar
Total Posts 5

Roles entered the site user

1. how do you know all of this person?
2. how to determine that he is a modifier on one of the pages? (PageID)

1. Как узанть все роли пользователя
2. Как определить что он является модификатором относительно одной из страниц? (PageID)

7/27/2008 3:16:26 AM
Gravatar
Total Posts 5

Re: Roles entered the site user

// UserInfo
SiteUtils.GetCurrentSiteUser()

siteSettings.SiteId

//getUserRoles

IDataReader reader = SiteUser.GetRolesByUser(siteSettings.SiteId, SiteUtils.GetCurrentSiteUser().UserId);
while (reader.Read())
{
Test.Text += reader["RoleName"].ToString().Trim() + "<br>";
}

 

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