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:
parent
3a9675eb14
commit
b56d3426d2
7 changed files with 20 additions and 12 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue