debian-mirror-gitlab/app/controllers/groups/achievements_controller.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

17 lines
345 B
Ruby
Raw Normal View History

2023-07-09 08:55:56 +05:30
# frozen_string_literal: true
module Groups
class AchievementsController < Groups::ApplicationController
feature_category :user_profile
urgency :low
before_action :authorize_read_achievement!
private
def authorize_read_achievement!
render_404 unless can?(current_user, :read_achievement, group)
end
end
end