Add role_invoices
This new role allows users to create invoices without role_finance. Users can then only modify their own created invoices until somebody with the role_finance sets the paid_on value.
This commit is contained in:
parent
273969ac90
commit
1315103a7d
20 changed files with 73 additions and 20 deletions
|
|
@ -150,7 +150,7 @@ module ApplicationHelper
|
|||
end
|
||||
|
||||
def format_roles(record, icon=false)
|
||||
roles = %w(suppliers article_meta orders finance admin)
|
||||
roles = %w(suppliers article_meta orders finance invoices admin)
|
||||
roles.select! {|role| record.send "role_#{role}?"}
|
||||
names = Hash[roles.map{|r| [r, I18n.t("helpers.application.role_#{r}")]}]
|
||||
if icon
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue