AquaLogic Interaction Development Kit (IDK) 6.0.0 |

# IDocument.IsActionAllowed Method

Returns whether or not a given `DocumentPermissions` is allowed for this document.

bool IsActionAllowed(
DocumentPermissions permission
);

#### Parameters

permission
  The document permission.

#### Return Value

`true` 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 such as editing a document, copying a document, editing document security, etc. See the enumeration type `DocumentPermissions` for details about specific document permissions.

#### Exceptions

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

#### See Also

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