added back premium check

This commit is contained in:
Kima 2024-06-16 21:33:33 +02:00
parent 604e9dcaad
commit 4277f0662a
2 changed files with 7 additions and 11 deletions

View File

@ -728,12 +728,12 @@ class GradesPageState extends State<GradesPage> {
return;
}
// if (!Provider.of<PlusProvider>(context, listen: false)
// .hasScope(PremiumScopes.gradeExporting)) {
// PlusLockedFeaturePopup.show(
// context: context, feature: PremiumFeature.gradeExporting);
// return;
// }
if (!Provider.of<PlusProvider>(context, listen: false)
.hasScope(PremiumScopes.gradeExporting)) {
PlusLockedFeaturePopup.show(
context: context, feature: PremiumFeature.gradeExporting);
return;
}
// show file picker
FilePicker.platform.pickFiles(
@ -750,10 +750,6 @@ class GradesPageState extends State<GradesPage> {
generateTiles();
setState(() {});
print(content);
print(json);
print(jsonGrades.map((e) => e.json));
}
});

@ -1 +1 @@
Subproject commit ac93b31cbc8a3ce2a9e9e2036e2f2ae4ffbe51f3
Subproject commit c01a0249b9266346d8e812fe026dc933500ceac7