Jogosultságok projektenkénti kezelése
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 6s
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 6s
This commit is contained in:
@@ -109,8 +109,9 @@ class AppDrawer extends StatelessWidget {
|
||||
),
|
||||
Obx(() {
|
||||
final signedIn = AuthService.to.isSignedIn;
|
||||
final projectId = ProjectService.to.activeProject.value?.uuid;
|
||||
final allowed = !Get.isRegistered<PermissionService>() ||
|
||||
PermissionService.to.canContacts;
|
||||
PermissionService.to.canContacts(projectId: projectId);
|
||||
if (!signedIn || !allowed) return const SizedBox.shrink();
|
||||
return ListTile(
|
||||
leading: const Icon(Icons.phone_outlined),
|
||||
|
||||
Reference in New Issue
Block a user