* It builds.. * Added granular permissions * Added granular permissions * Rename content to document * Added migration * Fixed issues causing the migration from v13 was not possible. * Merged Permissions and Granular Permissions in viewmodel * Prepared the viewmodel to a future where permissions can be more types. * OpenApi * Allow to translate a single char to many strings * Use frontend friendly values for known permissions * Validate the documents exist * Allow setting non-document settings * Add "$type" when required * Rename to presentation model and update OpenApi.json * OpenApi.json * Fix tests * OpenAPI * Fixed issues with upgrades * Add the discriminator name * Fixed issues that only happended on SqlServer * Fixed queries for SqlServer * Clean up * More cleanup * Fix issue when migrating sqlserver * Split fallback permissions into own concept in view model * Also split on current user * Added a extenable pattern for mappers between DTO => Granular Permission => ViewModel and ViewModel => Granular Permission * Fixed issue with new exists method, that did not take duplicate keys into account. * Added sections to current user response model * Formatting fixes * Move class to its own file * xml comment --------- Co-authored-by: Zeegaan <skrivdetud@gmail.com>
35 lines
930 B
C#
35 lines
930 B
C#
// Copyright (c) Umbraco.
|
|
// See LICENSE for more details.
|
|
|
|
namespace Umbraco.Cms.Core.Actions;
|
|
|
|
/// <summary>
|
|
/// This action is invoked when a domain is being assigned to a document
|
|
/// </summary>
|
|
public class ActionAssignDomain : IAction
|
|
{
|
|
/// <inheritdoc cref="IAction.ActionLetter" />
|
|
public const string ActionLetter = "Umb.Document.CultureAndHostnames";
|
|
|
|
/// <inheritdoc cref="IAction.ActionAlias" />
|
|
public const string ActionAlias = "assigndomain";
|
|
|
|
/// <inheritdoc/>
|
|
public string Letter => ActionLetter;
|
|
|
|
/// <inheritdoc/>
|
|
public string Alias => ActionAlias;
|
|
|
|
/// <inheritdoc />
|
|
public string Category => Constants.Conventions.PermissionCategories.AdministrationCategory;
|
|
|
|
/// <inheritdoc />
|
|
public string Icon => "icon-home";
|
|
|
|
/// <inheritdoc />
|
|
public bool ShowInNotifier => false;
|
|
|
|
/// <inheritdoc />
|
|
public bool CanBePermissionAssigned => true;
|
|
}
|