File tree 3 files changed +10
-4
lines changed
3 files changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ const routes: Routes = [
28
28
{
29
29
path : 'create-course' ,
30
30
component : CreateCourseComponent ,
31
- // canActivate: [AngularFireAuthGuard],
31
+ canActivate : [ AngularFireAuthGuard ] ,
32
32
data : {
33
33
authGuardPipe : adminOnly
34
34
}
Original file line number Diff line number Diff line change 4
4
5
5
export const environment = {
6
6
production : false ,
7
- useEmulators : false ,
7
+ useEmulators : true ,
8
8
firebase : {
9
9
apiKey : "AIzaSyB9LOREMGhj1jpVXOHTKIwQu2oM7pVfjQg" ,
10
10
authDomain : "fir-course-recording-c7f3e.firebaseapp.com" ,
Original file line number Diff line number Diff line change 1
1
rules_version = '2';
2
+
2
3
service firebase.storage {
3
4
4
5
match /b/{bucket}/o {
5
6
6
- match /{allPaths=**} {
7
- allow read, write: if request.auth!=null;
7
+ match /courses/{courseId}/{fileName} {
8
+
9
+ allow read;
10
+
11
+ allow write: if request.auth != null &&
12
+ request.resource.size < 5 * 1024 * 1024;
13
+
8
14
}
9
15
10
16
}
You can’t perform that action at this time.
0 commit comments