diff options
Diffstat (limited to 'lib/roles.lua')
-rw-r--r-- | lib/roles.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/roles.lua b/lib/roles.lua index 8cc5332..0cfd382 100644 --- a/lib/roles.lua +++ b/lib/roles.lua @@ -299,8 +299,8 @@ set_role_perm = function(self, role, permissions, permissions_array) if role==nil or role=="" then return false, "Invalid Role" end - if string.find(role, '[^%w_/]') then - return false, "Role can only contain letters, numbers, '/', and '_'" + if string.find(role, '[^%w_/-]') then + return false, "Role can only contain letters, numbers, '/', '-', and '_'" end if permissions and not permissions_array then permissions_array = {} |