Spiegel von
https://github.com/paviliondev/discourse-custom-wizard.git
synchronisiert 2024-11-22 09:20:29 +01:00
Remove uncessary guardian checks
Dieser Commit ist enthalten in:
Ursprung
e34a24c495
Commit
662c7432ef
1 geänderte Dateien mit 2 neuen und 6 gelöschten Zeilen
|
@ -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))
|
||||
|
|
Laden …
In neuem Issue referenzieren