Tree Actions
A guide to creating a custom tree action in Umbraco
bool canCreateBlogs = false;
var user = _userService.GetByEmail(email);
var userPermissionsForBlog = _userService.GetPermissions(user, blogId);
foreach (var permission in userPermissionsForBlog)
{
if (permission.AssignedPermissions.Contains("C"))
{
canCreateBlogs = true;
}
}But how to know which letter corresponds to which Tree Action?
public interface IAction : IDiscoverable
{
char Letter {get;}
bool ShowInNotifier {get;}
bool CanBePermissionAssigned {get;}
string Icon {get;}
string Alias {get;}
string JsFunctionName {get;}
/// <summary>
/// A path to a supporting JavaScript file for the IAction. A script tag will be rendered out with the reference to the JavaScript file.
/// </summary>
string JsSource {get;}
}User Permission Codes
Type
Alias
Letter
Can Be Permission Assigned
Last updated
Was this helpful?