mirror of
https://github.com/documize/community.git
synced 2025-07-23 15:19:42 +02:00
using all new permissions for securing spaces and documents
WIP
This commit is contained in:
parent
ef285c91de
commit
300b617583
51 changed files with 517 additions and 868 deletions
|
@ -33,9 +33,9 @@ export default Ember.Service.extend({
|
|||
});
|
||||
},
|
||||
|
||||
// Returns all documents for specified folder.
|
||||
getAllByFolder(folderId) {
|
||||
return this.get('ajax').request(`documents?folder=${folderId}`, {
|
||||
// Returns all documents for specified space.
|
||||
getAllBySpace(spaceId) {
|
||||
return this.get('ajax').request(`documents?space=${spaceId}`, {
|
||||
method: "GET"
|
||||
}).then((response) => {
|
||||
let documents = Ember.ArrayProxy.create({
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue