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:
@@ -82,7 +82,7 @@ func CreateAlbum(accessToken string, title string, description string, parentID
|
||||
}
|
||||
|
||||
func CheckUserAlbumAccess(userID string, albumID string) (int, error) {
|
||||
userAccess := models.UserAccess{}
|
||||
userAccess := models.UserAlbumAccess{}
|
||||
result := db.GetDB().First(&userAccess, "user_id = ? AND album_id = ?", userID, albumID)
|
||||
if result.Error != nil {
|
||||
if result.Error == gorm.ErrRecordNotFound {
|
||||
|
||||
Reference in New Issue
Block a user