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}")
|
log_info("route: #{route_to}")
|
||||||
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)
|
||||||
|
@ -339,9 +337,7 @@ class CustomWizard::Action
|
||||||
end
|
end
|
||||||
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