Table of Contents

Class Authorization

Namespace
Dynamicweb.Security
Assembly
Dynamicweb.Security.dll
Provides autorization-specific functions
public class Authorization
Inheritance
Authorization
Inherited Members

Methods

HasAccess(string)

Checks if the current user has access to the module This is the same as calling HasAccess(moduleSystemName, Nothing)
public static bool HasAccess(string moduleSystemName)

Parameters

moduleSystemName string

Returns

bool

HasAccess(string, string)

[Obsolete("Use UserHasAccess instead.")]
public static bool HasAccess(string strKey, string strVal)

Parameters

strKey string
strVal string

Returns

bool

ModulesToHideInNewUi()

Modules to hide in new UI. Will not be shown anywhere because they are deprecated or moved to management center.
public static List<string> ModulesToHideInNewUi()

Returns

List<string>
List of modules names

Remarks

By default everyone have access to these modules... HasAccess and IsInstalled will return true.

ModulesToHideInNewUiIfNotInstalled()

Modules to hide in new UI if not installed. Deprecated modules
public static List<string> ModulesToHideInNewUiIfNotInstalled()

Returns

List<string>
Deprecated modules...

ModulesToHideInNewUiList()

Modules to hide in new UI list. Can be added to a paragraph, but will not show up in module lust
public static List<string> ModulesToHideInNewUiList()

Returns

List<string>
List of modules names

Remarks

I.e. Templates and ControlLoader

UserHasAccess(string, string)

Checks whether the current user, has access to a specific module or a value within that specific module.
public static bool UserHasAccess(string key, string value)

Parameters

key string
value string

Returns

bool
True if the current user has access.
To top