Browse Source
style and position of button helpers for displaying the button conditionally depending on user role and what filters and search are activepull/1657/head
4 changed files with 32 additions and 2 deletions
@ -0,0 +1,9 @@
|
||||
module LogListHelper |
||||
def display_delete_logs? |
||||
if @current_user.data_provider? |
||||
filter_selected?("user", "yours") |
||||
else |
||||
any_filter_selected? || @searched.present? |
||||
end |
||||
end |
||||
end |
||||
Loading…
Reference in new issue