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
|
@ -321,8 +321,6 @@ class CustomWizard::Action
|
||||||
end
|
end
|
||||||
|
|
||||||
def create_group
|
def create_group
|
||||||
guardian.ensure_can_create!(Group)
|
|
||||||
|
|
||||||
group =
|
group =
|
||||||
begin
|
begin
|
||||||
Group.new(new_group_params)
|
Group.new(new_group_params)
|
||||||
|
@ -340,8 +338,6 @@ class CustomWizard::Action
|
||||||
end
|
end
|
||||||
|
|
||||||
def create_category
|
def create_category
|
||||||
guardian.ensure_can_create!(Category)
|
|
||||||
|
|
||||||
category =
|
category =
|
||||||
begin
|
begin
|
||||||
Category.new(new_category_params.merge(user: user))
|
Category.new(new_category_params.merge(user: user))
|
||||||
|
|
Laden …
In neuem Issue referenzieren