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:
parent
7ce3adb65e
commit
1d2109aa44
18 changed files with 2411 additions and 402 deletions
|
@ -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) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue