forked from External/ergo
client: HasCapabs -> HasRoleCapabs to make it more clear exactly what this means
This commit is contained in:
parent
810908db7f
commit
cea6565b80
2 changed files with 3 additions and 3 deletions
|
|
@ -330,8 +330,8 @@ func (client *Client) HasUsername() bool {
|
|||
return client.username != "" && client.username != "*"
|
||||
}
|
||||
|
||||
// HasCapabs returns true if client has the given (role) capabilities.
|
||||
func (client *Client) HasCapabs(capabs ...string) bool {
|
||||
// HasRoleCapabs returns true if client has the given (role) capabilities.
|
||||
func (client *Client) HasRoleCapabs(capabs ...string) bool {
|
||||
if client.class == nil {
|
||||
return false
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue