Note: This is the migration API reference for FAKE 5. The new (modularized) API documentation can be found
here.
If the API is already migrated you can check here if exists in a module.
More information regarding the migration can be found here
OBSOLETE
This API is obsolete. There is no alternative in FAKE 5 yet. You can help by porting this module.
PermissionsHelper
Contains functions which allow to deal with permissions.
Functions and values
Function or value | Description | ||
isAdmin(identity)
Signature: identity:WindowsIdentity -> bool
Attributes: [<Obsolete("This API is obsolete. There is no alternative in FAKE 5 yet. You can help by porting this module.")>] |
OBSOLETEThis API is obsolete. There is no alternative in FAKE 5 yet. You can help by porting this module. Returns whether the given user has administrator permissions. Parameters
|
||
requiresAdmin(f)
Signature: f:(unit -> '?10222) -> '?10222
Type parameters: '?10222 Attributes: [<Obsolete("This API is obsolete. There is no alternative in FAKE 5 yet. You can help by porting this module.")>] |
OBSOLETEThis API is obsolete. There is no alternative in FAKE 5 yet. You can help by porting this module. Checks that the current user has administrator permissions - otherwise it throws an exception. Parameters
Sample
|