|
|
@ -232,7 +232,7 @@ func (s *StoryService) EditStory(ctx context.Context, story *models.Story, name |
|
|
|
} |
|
|
|
|
|
|
|
func (s *StoryService) AddStoryTag(ctx context.Context, story models.Story, tag models.Tag) (*models.Story, error) { |
|
|
|
if err := s.authService.CheckPermission(ctx, "edit", &story); err != nil { |
|
|
|
if err := s.authService.CheckPermission(ctx, "tag", &story); err != nil { |
|
|
|
return nil, err |
|
|
|
} |
|
|
|
|
|
|
@ -249,7 +249,7 @@ func (s *StoryService) AddStoryTag(ctx context.Context, story models.Story, tag |
|
|
|
} |
|
|
|
|
|
|
|
func (s *StoryService) RemoveStoryTag(ctx context.Context, story models.Story, tag models.Tag) (*models.Story, error) { |
|
|
|
if err := s.authService.CheckPermission(ctx, "edit", &story); err != nil { |
|
|
|
if err := s.authService.CheckPermission(ctx, "tag", &story); err != nil { |
|
|
|
return nil, err |
|
|
|
} |
|
|
|
|
|
|
|