Table of Contents

Class PolymorphismPermissions

Namespace
ToSic.Sxc.Render.Polymorphism.Sys
Assembly
ToSic.Sxc.Web.dll

Polymorphism resolver for different editions based on user permissions.

[InternalApi_DoNotUse_MayChangeWithoutNotice]
public class PolymorphismPermissions : IPolymorphismResolver, ISwitchableService
Inheritance
object
PolymorphismPermissions
Implements

Constructors

PolymorphismPermissions(IUser)

Polymorphism resolver for different editions based on user permissions.

public PolymorphismPermissions(IUser user)

Parameters

user IUser

Fields

ModeIsSuperUser

BTW: when this is configured, the entire config string is "Permissions?IsSuperUser" so the parameters are "IsSuperUser"

public const string ModeIsSuperUser = "IsSuperUser"

Field Value

string

Properties

NameId

Primary identifier of an object which has this property. It will be unique and used as an ID where needed.

public string NameId { get; }

Property Value

string

Priority

public int Priority { get; }

Property Value

int

Methods

Edition(PolymorphismConfigurationModel, string?, ILog)

public string? Edition(PolymorphismConfigurationModel config, string? overrule, ILog log)

Parameters

config PolymorphismConfigurationModel
overrule string
log ILog

Returns

string

IsViable()

public bool IsViable()

Returns

bool