Exclude staff from activity recording
This commit is contained in:
parent
c90e8c08a6
commit
ebaf3224fd
2 changed files with 7 additions and 3 deletions
|
@ -314,9 +314,10 @@ impl Server {
|
|||
|(project_id, project)| {
|
||||
project.guests.values().chain([&project.host]).filter_map(
|
||||
|collaborator| {
|
||||
if collaborator
|
||||
.last_activity
|
||||
.map_or(false, |activity| activity > period_start)
|
||||
if !collaborator.admin
|
||||
&& collaborator
|
||||
.last_activity
|
||||
.map_or(false, |activity| activity > period_start)
|
||||
{
|
||||
Some((collaborator.user_id, *project_id))
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue