Require auth for most methods
This commit is contained in:
@@ -24,6 +24,7 @@ message File {
|
||||
string passcode = 4;
|
||||
int64 current_views = 5;
|
||||
int64 max_views = 6;
|
||||
string owner = 7;
|
||||
};
|
||||
|
||||
Metadata metadata = 3;
|
||||
@@ -86,10 +87,10 @@ message User {
|
||||
bytes hashed_password = 3;
|
||||
enum Role {
|
||||
UNKNOWN = 0;
|
||||
VIEWONLY = 1;
|
||||
USER = 2;
|
||||
ADMIN = 3;
|
||||
UNAPPROVED = 4;
|
||||
UNAPPROVED = 1;
|
||||
VIEWONLY = 4;
|
||||
USER = 7;
|
||||
ADMIN = 10;
|
||||
}
|
||||
Role user_role = 4;
|
||||
bool active = 5;
|
||||
|
Reference in New Issue
Block a user