mirror of
https://github.com/niusmallnan/steve.git
synced 2025-09-03 14:15:36 +00:00
Drop unused variable
This commit is contained in:
@@ -138,12 +138,6 @@ type Resources struct {
|
|||||||
func (a AccessListByVerb) Granted(verb string) (result map[string]Resources) {
|
func (a AccessListByVerb) Granted(verb string) (result map[string]Resources) {
|
||||||
result = map[string]Resources{}
|
result = map[string]Resources{}
|
||||||
|
|
||||||
// if list, we need to check get also
|
|
||||||
verbs := []string{verb}
|
|
||||||
if verb == "list" {
|
|
||||||
verbs = append(verbs, "get")
|
|
||||||
}
|
|
||||||
|
|
||||||
for _, access := range a[verb] {
|
for _, access := range a[verb] {
|
||||||
resources := result[access.Namespace]
|
resources := result[access.Namespace]
|
||||||
if access.ResourceName == All {
|
if access.ResourceName == All {
|
||||||
|
Reference in New Issue
Block a user