Fix doc comments and IDE complaint about ie. vs i.e. (#30340)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
8e9a09e512
Коммит
77ae2e2d6d
@@ -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.
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Ссылка в новой задаче
Block a user