Plumtree EDK (Enterprise Web Development Kit) 5.4.0 |

# IDiscussion.IsActionAllowed Method

Returns if a given `DiscussionPermissions` is allowed for this discussion.

bool IsActionAllowed(
DiscussionPermissions permission
);

#### Parameters

permission
  Discussion permission; cannot be `null`.

#### 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 discussion such as editing, copying, and modifying security, etc. See the enumeration type `DiscussionPermissions` for details about specific Discussion permissions

#### Exceptions

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

#### See Also

IDiscussion Interface | Plumtree.Remote.PRC.Collaboration.Discussion Namespace