Fix project scheduling (#576)

* Fix project scheduling

* fix comp

* Fix again

* Fix compile err

* Fix compile err

* Fix compile err

* fix random err
This commit is contained in:
Geometrically
2023-04-18 17:12:44 -07:00
committed by GitHub
parent bb80505b76
commit 5c559af936
2 changed files with 8 additions and 4 deletions

View File

@@ -691,8 +691,8 @@ pub async fn version_schedule(
)
.await?;
if user.role.is_mod()
|| team_member
if !user.role.is_mod()
&& !team_member
.map(|x| x.permissions.contains(Permissions::EDIT_DETAILS))
.unwrap_or(false)
{