mapseed / api

Legacy api for the Mapseed platform
https://mapseed.org
GNU General Public License v3.0
7 stars 7 forks source link

refactor(GroupSerializer): serialize group permissions and dataset slug #160

Closed goldpbear closed 5 years ago

goldpbear commented 5 years ago

This PR serializes permissions for each dataset group returned along with the User serialization. Group permissions are serialized as an array in the following format:

[
  {
    abilities: ["create", "retrieve", "update", "destroy"],
    submission_set: "*"
  }
]

where each object in the array represents one set of permissions.

We also serialize the dataset_slug of each group's parent dataset.