Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor group permission function. #332

Merged
merged 11 commits into from
Jan 6, 2023
Prev Previous commit
Next Next commit
Start docs with single sentence summary.
Jonas-Sander committed Jan 5, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
commit c6ea46fce7b8d3cd676be20d44e2cb0c9d917803
9 changes: 6 additions & 3 deletions app/lib/groups/group_permission.dart
Original file line number Diff line number Diff line change
@@ -10,11 +10,14 @@ import 'package:group_domain_models/group_domain_models.dart';
import 'package:meta/meta.dart';

enum GroupPermission {
/// Used for administrative tasks like e.g. editing course names/settings or
/// editing homework created by another user in the group.
/// Permission to perform administrative tasks for the group and its content.
///
/// For example: editing course names/settings or editing homework created by
/// another user in the group.
administration,

/// Used to see if a user can create content (homework, info sheets, etc).
/// Permission to create content for the group (homework, info sheets, etc).
///
/// In some places in the code this is also used to check if certain content
/// can be edited, even if created by other users (timetable entry).
/// There might be more usages than just strictly content creation.