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
HasAccess(string, string)
[Obsolete("Use UserHasAccess instead.")]
public static bool HasAccess(string strKey, string strVal)
Parameters
Returns
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
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
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
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
Returns
- bool
- True if the current user has access.