extend-roles-api-fields.patch

Alex Stanev, 2018-02-14 15:38

Download (566 Bytes)

View differences:

app/views/roles/show.api.rsb (working copy)
1 1
api.role do
2 2
  api.id @role.id
3 3
  api.name @role.name
4
  api.assignable @role.assignable
5
  api.issues_visibility @role.issues_visibility
6
  api.time_entries_visibility @role.time_entries_visibility
7
  api.users_visibility @role.users_visibility
4 8
  api.array :permissions do
5 9
    @role.permissions.each do |perm|
6 10
      api.permission(perm.to_s)