fix: public var in component

This commit is contained in:
2020-03-22 15:34:17 +01:00
committed by smuddy
parent a1c750b3c8
commit a50d988f9b
2 changed files with 10 additions and 9 deletions

View File

@@ -7,21 +7,22 @@ service cloud.firestore {
} }
match /songs/{song} { match /songs/{song} {
allow read: if true; allow read: if request.auth.uid != null;
allow write: if true; allow write: if request.auth.uid != null;
} }
match /songs/{song}/files/{file} { match /songs/{song}/files/{file} {
allow read: if true; allow read: if request.auth.uid != null;
allow write: if true; allow write: if request.auth.uid != null;
} }
match /shows/{show} { match /shows/{show} {
allow read: if true; allow read: if request.auth.uid != null;
allow write: if true; allow write: if request.auth.uid != null;
} }
match /shows/{show}/songs/{song} { match /shows/{show}/songs/{song} {
allow read: if true; allow read: if request.auth.uid != null;
allow write: if true; allow write: if request.auth.uid != null;
} }
} }
} }

View File

@@ -17,7 +17,7 @@ import {User} from '../../../services/user';
export class SongComponent implements OnInit { export class SongComponent implements OnInit {
public song$: Observable<Song>; public song$: Observable<Song>;
public files$: Observable<File[]>; public files$: Observable<File[]>;
private user$: Observable<User>; public user$: Observable<User>;
constructor( constructor(
private activatedRoute: ActivatedRoute, private activatedRoute: ActivatedRoute,