Skip to content

Commit

Permalink
removed unnecessary extra arg in tmplHasRole
Browse files Browse the repository at this point in the history
  • Loading branch information
ashishjh-bst committed Dec 18, 2024
1 parent 25a3f97 commit aedf7a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/templates/context_funcs.go
Original file line number Diff line number Diff line change
Expand Up @@ -2246,7 +2246,7 @@ func (c *Context) hasRole(roleInput interface{}, accept roleInputType) bool {
return common.ContainsInt64Slice(c.MS.Member.Roles, role.ID)
}

func (c *Context) tmplHasRole(roleInput interface{}, accept roleInputType) bool {
func (c *Context) tmplHasRole(roleInput interface{}) bool {
return c.hasRole(roleInput, acceptAllRoleInput)
}

Expand Down

0 comments on commit aedf7a2

Please sign in to comment.