Files
Umbraco-CMS/src/Umbraco.Core/Actions/ActionProtect.cs

35 lines
879 B
C#
Raw Normal View History

2021-12-15 16:22:27 +01:00
// Copyright (c) Umbraco.
// See LICENSE for more details.
namespace Umbraco.Cms.Core.Actions
{
/// <summary>
/// This action is invoked when a document is protected or unprotected
/// </summary>
public class ActionProtect : IAction
{
2021-12-15 16:22:27 +01:00
/// <summary>
/// The unique action letter
/// </summary>
2018-11-24 19:39:15 +01:00
public const char ActionLetter = 'P';
2021-12-15 16:22:27 +01:00
/// <inheritdoc/>
2018-11-24 19:39:15 +01:00
public char Letter => ActionLetter;
2021-12-15 16:22:27 +01:00
/// <inheritdoc/>
public string Alias => "protect";
2021-12-15 16:22:27 +01:00
/// <inheritdoc/>
public string Category => Constants.Conventions.PermissionCategories.AdministrationCategory;
2021-12-15 16:22:27 +01:00
/// <inheritdoc/>
public string Icon => "lock";
2021-12-15 16:22:27 +01:00
/// <inheritdoc/>
public bool ShowInNotifier => true;
2021-12-15 16:22:27 +01:00
/// <inheritdoc/>
public bool CanBePermissionAssigned => true;
}
}