1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-08-02 20:15:26 +02:00

ember-truth-helpers, allow for no category viewers

This commit is contained in:
Harvey Kandola 2017-09-22 08:52:11 +01:00
parent 3a9675eb14
commit b56d3426d2
7 changed files with 20 additions and 12 deletions

View file

@ -111,8 +111,8 @@ export default BaseService.extend({
},
// Save list of users who can see given category
setViewers(categoryId, viewers) {
return this.get('ajax').request(`category/${categoryId}/permission`, {
setViewers(spaceId, categoryId, viewers) {
return this.get('ajax').request(`category/${categoryId}/permission?space=${spaceId}`, {
method: 'PUT',
contentType: 'json',
data: JSON.stringify(viewers)