Require auth for most methods

This commit is contained in:
2021-12-07 06:51:14 +01:00
parent 5fcf09f160
commit 34421e082f
4 changed files with 221 additions and 176 deletions

View File

@@ -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;