/// <summary> /// Copies all permissions to related users of the usertype /// </summary> /// <param name="userType">Type of the user.</param> /// <param name="node">The node.</param> public static void CopyPermissions(UserType userType, CMSNode node) { string permissions = userType.GetPermissions(node.Path); foreach (User user in userType.GetAllRelatedUsers()) { if (!user.IsAdmin() && !user.Disabled) { Permission.UpdateCruds(user, node, permissions); user.initCruds(); } } }