mirror of
https://github.com/wisplite/raster.git
synced 2026-05-01 06:32:44 -05:00
update authorization tokens and add/fix create album endpoint
This commit is contained in:
@@ -19,7 +19,7 @@ type Album struct {
|
||||
UpdatedAt time.Time
|
||||
}
|
||||
|
||||
type UserAccess struct {
|
||||
type UserAlbumAccess struct {
|
||||
UserID string `gorm:"not null"`
|
||||
AlbumID string `gorm:"not null"`
|
||||
AccessLevel int `gorm:"not null"` // 0: View, 1: Upload, 2: Edit, 3: Edit/Delete, 4: Admin (manage other users)
|
||||
|
||||
Reference in New Issue
Block a user