🐛 Fix sticker perm check
This commit is contained in:
@@ -31,7 +31,7 @@ public class StickerController(
|
|||||||
return NotFound("Sticker pack not found");
|
return NotFound("Sticker pack not found");
|
||||||
|
|
||||||
var accountId = Guid.Parse(currentUser.Id);
|
var accountId = Guid.Parse(currentUser.Id);
|
||||||
if (!await ps.IsMemberWithRole(accountId, pack.PublisherId, requiredRole))
|
if (!await ps.IsMemberWithRole(pack.PublisherId, accountId, requiredRole))
|
||||||
return StatusCode(403, "You are not a member of this publisher");
|
return StatusCode(403, "You are not a member of this publisher");
|
||||||
|
|
||||||
return Ok();
|
return Ok();
|
||||||
|
Reference in New Issue
Block a user