isAllowedToShareFarm
@svenvw/fdm-source / fdm-core/src / isAllowedToShareFarm
Function: isAllowedToShareFarm()
isAllowedToShareFarm(
fdm
,principal_id
,b_id_farm
):Promise
<boolean
>
Defined in: fdm-core/src/farm.ts:525
Checks if the specified principal is allowed to share a given farm.
This function verifies if the acting principal has 'share' permission on the farm.
Parameters
fdm
any
The FDM instance providing the connection to the database. The instance can be created with createFdmServer.
principal_id
any
The identifier of the principal whose permissions are being checked.
b_id_farm
any
The identifier of the farm.
Returns
Promise
<boolean
>
A Promise that resolves to true if the principal has 'share' permission, false otherwise.