1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-08-01 19:45:24 +02:00

upgraded gorilla mux dependency, improved anon viewing

This commit is contained in:
Harvey Kandola 2017-10-04 14:02:03 -04:00
parent 7ce3adb65e
commit 1d2109aa44
18 changed files with 2411 additions and 402 deletions

View file

@ -12,6 +12,7 @@
import Ember from 'ember';
const {
RSVP,
inject: { service }
} = Ember;
@ -26,6 +27,10 @@ export default Ember.Service.extend({
getUserPins() {
let userId = this.get('session.user.id');
if (!this.get('session.authenticated')) {
return new RSVP.resolve([]);
}
return this.get('ajax').request(`pin/${userId}`, {
method: 'GET'
}).then((response) => {