forked from ebhomengo/niki
1
0
Fork 0
niki/pkg/slice/admin_permission.go

16 lines
239 B
Go
Raw Normal View History

package slice
import (
"git.gocasts.ir/ebhomengo/niki/entity"
)
func DoesExist(list []entity.AdminPermission, value entity.AdminPermission) bool {
for _, item := range list {
if item == value {
return true
}
}
return false
}