mirror of
https://github.com/discourse/discourse.git
synced 2025-05-21 18:12:32 +08:00
dropdown on categorypage
This commit is contained in:
@ -72,6 +72,14 @@ class CategoriesController < ApplicationController
|
||||
}
|
||||
end
|
||||
|
||||
def set_notifications
|
||||
category_id = params[:category_id].to_i
|
||||
notification_level = params[:notification_level].to_i
|
||||
|
||||
CategoryUser.set_notification_level_for_category(current_user, notification_level , category_id)
|
||||
render json: success_json
|
||||
end
|
||||
|
||||
def destroy
|
||||
guardian.ensure_can_delete!(@category)
|
||||
@category.destroy
|
||||
|
Reference in New Issue
Block a user