fix: public var in component
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user