Revision 720671b8
Added by Ondřej Pražák over 6 years ago
app/models/foreman_pipeline/authorization/base_model.rb | ||
---|---|---|
22 | 22 |
authorized(normalize_name("view")) |
23 | 23 |
end |
24 | 24 |
|
25 |
# TODO: remove argument |
|
26 | 25 |
def normalize_name(action_string) |
27 | 26 |
(action_string + self.class.name.demodulize.pluralize).underscore.to_sym |
28 | 27 |
end |
Also available in: Unified diff
Fixes #13288 - Fix for pattrenfly UI