You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: eFormAPI/Plugins/TimePlanning.Pn/TimePlanning.Pn/Services/TimePlanningPlanningService/TimePlanningPlanningService.cs
+23Lines changed: 23 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -89,6 +89,29 @@ await dbContext.AssignedSites
89
89
vareFormAdminsGroup=userSecurityGroups
90
90
.Any(x =>x.SecurityGroup.Name=="eForm admins");
91
91
isAdmin=eFormAdminsGroup;
92
+
if(!isAdmin)
93
+
{
94
+
varisEformUsersGroup=userSecurityGroups
95
+
.Any(x =>x.SecurityGroup.Name=="eForm users");
96
+
varisKunTidGroup=userSecurityGroups
97
+
.Any(x =>x.SecurityGroup.Name=="Kun tid");
98
+
if(isEformUsersGroup&&!isKunTidGroup)
99
+
{
100
+
// Fallback: when no user in the system is configured as a manager,
101
+
// grant "eForm users" members the admin-for-visibility view on this
102
+
// endpoint so the planning dashboard isn't empty in that degenerate
103
+
// state. Users also in "Kun tid" (time-registration device users with
104
+
// WebAccess) are explicitly excluded and stay restricted to own site.
0 commit comments