From aedf7a2cb58fa159257be6a93889e3384c479152 Mon Sep 17 00:00:00 2001 From: Ashish Date: Wed, 18 Dec 2024 22:10:44 +0530 Subject: [PATCH] removed unnecessary extra arg in tmplHasRole --- common/templates/context_funcs.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/templates/context_funcs.go b/common/templates/context_funcs.go index afb1378aa..8ad48baa6 100644 --- a/common/templates/context_funcs.go +++ b/common/templates/context_funcs.go @@ -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) }