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));
}
});