DiskutoUserStore.getUserRole

Returns the role of a particular user for the given topic.

Note that this method must accept unknown user IDs. Typical return values in this case are UserRole.user or UserRole.banned (to enable posting for registered users only).

interface DiskutoUserStore
@safe nothrow
StoredUser.Role
getUserRole
(
StoredUser.ID user
,
string topic
)

Parameters

user

ID of the user to query

topic
Type: string

The topic for which to query the role

Meta