Note: This API documentation is for FAKE version 4. The migration API documentation can be found
here. The API documentation for the new fake 5 modules can be found
here
PermissionsHelper
Contains functions which allow to deal with permissions.
Functions and values
Function or value | Description | ||
isAdmin(identity)
Signature: identity:WindowsIdentity -> bool
|
Returns whether the given user has administrator permissions. Parameters
|
||
requiresAdmin(f)
Signature: f:(unit -> '?10547) -> '?10547
Type parameters: '?10547 |
Checks that the current user has administrator permissions - otherwise it throws an exception. Parameters
Sample
|