Skip to content

Commit

Permalink
Fix doc comments and IDE complaint about ie. vs i.e. (mattermost#30340)
Browse files Browse the repository at this point in the history
  • Loading branch information
enzowritescode authored Feb 26, 2025
1 parent 8e9a09e commit 77ae2e2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion server/channels/app/authorization.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ func (a *App) SessionHasPermissionToChannels(c request.CTX, session model.Sessio
}
}

// if System Roles (ie. Admin, TeamAdmin) allow permissions
// if System Roles (i.e. Admin, TeamAdmin) allow permissions
// if so, no reason to check team
if a.SessionHasPermissionTo(session, permission) {
// make sure all channels exist, otherwise return false.
Expand Down
2 changes: 1 addition & 1 deletion server/public/model/permission.go
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ var PermissionRunView *Permission
var PermissionSysconsoleReadProductsBoards *Permission
var PermissionSysconsoleWriteProductsBoards *Permission

// General permission that encompasses all system admin functions
// PermissionManageSystem is a general permission that encompasses all system admin functions
// in the future this could be broken up to allow access to some
// admin functions but not others
var PermissionManageSystem *Permission
Expand Down
2 changes: 1 addition & 1 deletion server/public/model/session.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ func (s *Session) Auditable() map[string]interface{} {
}
}

// Returns true if the session is unrestricted, which should grant it
// IsUnrestricted returns true if the session is unrestricted, which should grant it
// with all permissions. This is used for local mode sessions
func (s *Session) IsUnrestricted() bool {
return s.Local
Expand Down

0 comments on commit 77ae2e2

Please sign in to comment.