/// <summary>
/// Returns a value indicating whether the current user can manage categories in the selected namespace.
/// </summary>
/// <returns><c>true</c> if the user can manage categories, <c>false</c> otherwise.</returns>
private bool CanManageCategoriesInCurrentNamespace()
{
string currentWiki = DetectWiki();
NamespaceInfo nspace = Pages.FindNamespace(currentWiki, lstNamespace.SelectedValue);
AuthChecker authChecker = new AuthChecker(Collectors.CollectorsBox.GetSettingsProvider(currentWiki));
bool canManageCategories = authChecker.CheckActionForNamespace(nspace, Actions.ForNamespaces.ManageCategories,
SessionFacade.GetCurrentUsername(), SessionFacade.GetCurrentGroupNames(currentWiki));
return(canManageCategories);
}