MM-38150 Adding playbooks permissions (#19096)
* Add playbooks related permissions. * Add RolesGrantPermission to pluginapi * Fixing scopes. * New defaults. * Fix defaults * Fix tests. * Fix migration. * More test and migration fixes. * Need to add everything to system admin too. * Move to 63 * Feedback fixes. * Fix system manager editing playbook permissions.
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
129f0aabd3
Коммит
5ec78546e2
@@ -960,6 +960,11 @@ type API interface {
|
||||
// Minimum server version: 5.3
|
||||
HasPermissionToChannel(userID, channelId string, permission *model.Permission) bool
|
||||
|
||||
// RolesGrantPermission check if the specified roles grant the specified permission
|
||||
//
|
||||
// Minimum server version: 6.3
|
||||
RolesGrantPermission(roleNames []string, permissionId string) bool
|
||||
|
||||
// LogDebug writes a log message to the Mattermost server log file.
|
||||
// Appropriate context such as the plugin name will already be added as fields so plugins
|
||||
// do not need to add that info.
|
||||
|
||||
Ссылка в новой задаче
Block a user