0
0
Fork 1
Spiegel von https://github.com/paviliondev/discourse-custom-wizard.git synchronisiert 2024-11-09 20:02:54 +01:00

Remove uncessary guardian checks

Dieser Commit ist enthalten in:
Angus McLeod 2020-09-24 17:47:07 +10:00
Ursprung e34a24c495
Commit 662c7432ef

Datei anzeigen

@ -320,9 +320,7 @@ class CustomWizard::Action
log_info("route: #{route_to}")
end
def create_group
guardian.ensure_can_create!(Group)
def create_group
group =
begin
Group.new(new_group_params)
@ -339,9 +337,7 @@ class CustomWizard::Action
end
end
def create_category
guardian.ensure_can_create!(Category)
def create_category
category =
begin
Category.new(new_category_params.merge(user: user))