Interface IUserSecurityController
Namespace: DotNetNuke.Services.FileSystem.Internal
Assembly: DotNetNuke.dll
Syntax
public interface IUserSecurityController
Methods
| Improve this Doc View SourceHasFolderPermission(IFolderInfo, String)
Checks if the provided permission is allowed for the current user in the provided folder.
Declaration
bool HasFolderPermission(IFolderInfo folder, string permissionKey)
Parameters
Type | Name | Description |
---|---|---|
IFolderInfo | folder | Folder to check. |
System.String | permissionKey | Permission key to check. |
Returns
Type | Description |
---|---|
System.Boolean | true if the current user has the requested permission, otherwise false. |
IsHostAdminUser(Int32, Int32)
Checks if the provided user is Host user or Admin user of the provided portal.
Declaration
bool IsHostAdminUser(int portalId, int userId)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | portalId | Portal Id to check Admin users. |
System.Int32 | userId | User Id to check. |
Returns
Type | Description |
---|---|
System.Boolean | True if the user is Host user or Admin user. False otherwise. |
IsHostAdminUser(Int32)
Checks if the Current user is Host user or Admin user of the provided portal.
Declaration
bool IsHostAdminUser(int portalId)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | portalId | Portal Id to check Admin users. |
Returns
Type | Description |
---|---|
System.Boolean | True if the Current user is Host user or Admin user. False otherwise. |