Skip to content

Commit

Permalink
Revert change to projectPermissionErrHeader, and add "(s)" to "team"
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanlink authored Oct 10, 2024
1 parent f7e71c2 commit a3f6470
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/App/Fossa/PreflightChecks.hs
Original file line number Diff line number Diff line change
Expand Up @@ -154,13 +154,13 @@ data ProjectPermissionErr
instance ToDiagnostic ProjectPermissionErr where
renderDiagnostic :: ProjectPermissionErr -> Errata
renderDiagnostic CreateProjectPermissionErr =
Errata (Just projectPermissionErrHeader) [] $ Just "You do not have permission to create projects for your Organization"
Errata (Just projectPermissionErrHeader) [] $ Just "You do not have permission to create projects for your Organization."
renderDiagnostic EditProjectPermissionErr =
Errata (Just projectPermissionErrHeader) [] $ Just "You do not have permission to edit projects for your Organization"
Errata (Just projectPermissionErrHeader) [] $ Just "You do not have permission to edit projects for your Organization."
renderDiagnostic CreateTeamProjectPermissionErr =
Errata (Just projectPermissionErrHeader) [] $ Just "You do not have permission to create projects for the specified team"
Errata (Just projectPermissionErrHeader) [] $ Just "You do not have permission to create projects for the specified team."
renderDiagnostic CreateProjectOnlyToTeamPermissionErr =
Errata (Just projectPermissionErrHeader) [] $ Just "You only have permission to create projects for your team. Please specify a team in .fossa.yml or using the --team flag"
Errata (Just projectPermissionErrHeader) [] $ Just "You only have permission to create projects for your team(s)."

releaseGroupPermissionErrHeader :: Text
releaseGroupPermissionErrHeader = "Invalid release group permission"
Expand Down

0 comments on commit a3f6470

Please sign in to comment.