Permission#
Permission#
Access Rights
message Permission {
bool read = 2;
bool write = 3;
bool delete = 4;
bool admin = 5;
DownloadRight download_right = 6;
bool read_children = 7;
bool write_children = 8;
bool delete_children = 9;
}
Field |
Type |
Description |
|---|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
See DownloadRight |
|
|
|
|
|
|
|
|
ItemPermissionsEntry#
One entry (group or user) of permissions
message ItemPermissionsEntry {
string id = 1;
string title = 2;
PermissionType permission = 3;
PermissionEntryType type = 4;
optional bool is_equal = 5;
optional int32 found_in_items = 6;
}
Field |
Type |
Description |
|---|---|---|
|
|
|
|
|
|
|
|
See PermissionType |
|
|
|
|
|
Optional |
|
|
Optional |
PermissionSettings#
Additional Settings for permissions set by client
message PermissionSettings {
optional bool change_all_groups = 1;
optional bool recursive = 2;
}
Field |
Type |
Description |
|---|---|---|
|
|
Optional |
|
|
Optional |
EffectivePermission#
The item-based effective access right for the current user
message EffectivePermission {
bool read = 1;
bool write = 2;
bool delete = 3;
bool admin = 4;
DownloadRight download_right = 5;
bool read_children = 6;
bool write_children = 7;
bool delete_children = 8;
optional bool read_metadata = 9;
optional bool shared_write = 10;
optional bool write_comments = 11;
optional EffectivePermissionQuestion question_permissions = 12;
optional EffectivePermissionAnswer answer_permissions = 13;
optional bool read_comments = 14;
optional EffectivePermissionComment comment_permissions = 15;
}
Field |
Type |
Description |
|---|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
See DownloadRight |
|
|
|
|
|
|
|
|
|
|
|
Optional |
|
|
Optional |
|
|
Optional |
|
|
Optional See EffectivePermissionQuestion |
|
|
Optional See EffectivePermissionAnswer |
|
|
Optional |
|
|
Optional See EffectivePermissionComment |
EffectivePermissionQuestion#
The effective access right for the current user for a Question
message EffectivePermissionQuestion {
bool create_question = 1;
bool delete_question = 2;
bool change_question_status = 3;
bool change_question_text = 4;
bool change_question_priority = 5;
bool change_question_assignment = 6;
bool change_question_category = 7;
bool change_question_attachments = 8;
bool change_question_deadline = 9;
// Answer
bool create_answer = 11;
}
Field |
Type |
Description |
|---|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Answer |
EffectivePermissionAnswer#
The effective access right for the current user for an Answer
message EffectivePermissionAnswer {
bool delete_answer = 1;
bool change_answer_text = 2;
bool change_answer_state = 3;
bool change_answer_attachments = 4;
}
Field |
Type |
Description |
|---|---|---|
|
|
|
|
|
|
|
|
|
|
|
EffectivePermissionComment#
The effective access right for the current user for a CommentDr
message EffectivePermissionComment {
bool change_comment_text = 1;
bool delete_comment = 2;
bool create_reply = 3;
bool change_comment_status = 4;
bool change_comment_visibility = 5;
bool change_comment_assignment = 6;
}
Field |
Type |
Description |
|---|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|