Class PermissionsExtensions
Extension methods for IUnixPermissions.
Inherited Members
Namespace: FubarDev.FtpServer
Assembly: FubarDev.FtpServer.Abstractions.dll
Syntax
public static class PermissionsExtensions
Methods
| Improve this Doc View SourceGetAccessModeFor(IUnixPermissions, IUnixOwner, IFtpUser)
Gets the effective access mode for an entity for the given user.
Declaration
[Obsolete("Use the overload with ClaimsPrincipal.")]
public static IAccessMode GetAccessModeFor(this IUnixPermissions permissions, IUnixOwner entity, IFtpUser user)
Parameters
| Type | Name | Description |
|---|---|---|
| IUnixPermissions | permissions | The permissions used to build the access mode. |
| IUnixOwner | entity | The entity owner information. |
| IFtpUser | user | The FTP user to determine the access mode for. |
Returns
| Type | Description |
|---|---|
| IAccessMode | The effective access mode for the |
GetAccessModeFor(IUnixPermissions, IUnixOwner, ClaimsPrincipal)
Gets the effective access mode for an entity for the given user.
Declaration
public static IAccessMode GetAccessModeFor(this IUnixPermissions permissions, IUnixOwner entity, ClaimsPrincipal user)
Parameters
| Type | Name | Description |
|---|---|---|
| IUnixPermissions | permissions | The permissions used to build the access mode. |
| IUnixOwner | entity | The entity owner information. |
| ClaimsPrincipal | user | The FTP user to determine the access mode for. |
Returns
| Type | Description |
|---|---|
| IAccessMode | The effective access mode for the |