rbac system first stage
This commit is contained in:
@@ -48,7 +48,7 @@ func (p *PageOpts) GetPageRange(total int, maxButtons int) []int {
|
||||
// If total pages is less than max buttons, show all pages
|
||||
if totalPages <= maxButtons {
|
||||
pages := make([]int, totalPages)
|
||||
for i := 0; i < totalPages; i++ {
|
||||
for i := range totalPages {
|
||||
pages[i] = i + 1
|
||||
}
|
||||
return pages
|
||||
|
||||
Reference in New Issue
Block a user