Add System permission.
This replaces the OverridePermissions method, and is communicated to clients that can reliably and safely identify a system user.
This commit is contained in:
@@ -63,16 +63,14 @@ func (client *Client) Challenge(group string, cred group.ClientCredentials) bool
|
||||
return true
|
||||
}
|
||||
|
||||
func (client *Client) OverridePermissions(g *group.Group) bool {
|
||||
return true
|
||||
}
|
||||
|
||||
func (client *Client) SetPermissions(perms group.ClientPermissions) {
|
||||
return
|
||||
}
|
||||
|
||||
func (client *Client) Permissions() group.ClientPermissions {
|
||||
return group.ClientPermissions{}
|
||||
return group.ClientPermissions{
|
||||
System: true,
|
||||
}
|
||||
}
|
||||
|
||||
func (client *Client) Status() map[string]interface{} {
|
||||
|
||||
Reference in New Issue
Block a user