mirror of
https://github.com/mxpv/podsync.git
synced 2024-05-11 05:55:04 +00:00
Check feature level when creating a new feed
This commit is contained in:
@@ -128,6 +128,9 @@ func (h handler) create(c *gin.Context) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Check feature level again if user deleted pledge by still logged in
|
||||||
|
identity.FeatureLevel = h.patreon.GetFeatureLevel(identity.UserId)
|
||||||
|
|
||||||
hashId, err := h.feed.CreateFeed(req, identity)
|
hashId, err := h.feed.CreateFeed(req, identity)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
c.JSON(internalError(err))
|
c.JSON(internalError(err))
|
||||||
|
Reference in New Issue
Block a user