Add cancancan to SDG content
Only allow access to the SDG content section to administrators and sdg managers
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
class SDGManagement::GoalsController < SDGManagement::BaseController
|
||||
load_and_authorize_resource class: "SDG::Goal"
|
||||
|
||||
def index
|
||||
@goals = SDG::Goal.order(:code)
|
||||
@goals = @goals.order(:code)
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user