AquaLogic Interaction Development Kit (IDK) 6.0.0 |

# IDocumentFolder.IsActionAllowed Method

Returns whether a given `DocumentFolderPermissions` is allowed for this document folder.

bool IsActionAllowed(
DocumentFolderPermissions permission
);

#### Parameters

permission
  Document folder permission.

#### Return Value

`True` if the user can perform the given action, else `false`.

#### Remarks

This method can be used to determine if a user can perform a given action within the context of a document folder such as editing a document folder, copying a document folder, editing document folder security, etc. See the enumeration type `DocumentFolderPermission` for details about specific document folder permissions.

#### Exceptions

Exception Type | Condition
--- | ---
SoapException | There was a communication problem during the execution of the remote method call.
InvalidOperationException | The document folder has not yet been inserted or has already been removed.
CollaborationException | The call resulted in an error.

#### See Also

IDocumentFolder Interface | Plumtree.Remote.PRC.Collaboration.Document Namespace