summaryrefslogtreecommitdiffstats
path: root/acf2/model/aaa.lua
diff options
context:
space:
mode:
Diffstat (limited to 'acf2/model/aaa.lua')
-rw-r--r--acf2/model/aaa.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/acf2/model/aaa.lua b/acf2/model/aaa.lua
index 7de4cfb..a5d6196 100644
--- a/acf2/model/aaa.lua
+++ b/acf2/model/aaa.lua
@@ -1,5 +1,5 @@
--[[
-Copyright (c) 2012-2013 Kaarle Ritvanen
+Copyright (c) 2012-2014 Kaarle Ritvanen
See LICENSE file for license details
--]]
@@ -8,7 +8,7 @@ local M = require('acf2.model')
local digest = require('crypto').digest
-Role = M.new()
+local Role = M.new()
Role.permissions = M.Set{type=M.Reference{scope='../../../permissions'}}
@@ -35,7 +35,7 @@ function Password:normalize(context, value)
end
-User = M.new()
+local User = M.new()
User.password = Password
User['real-name'] = M.String
User.superuser = M.Boolean{default=false}
@@ -65,7 +65,7 @@ function User:check_permission(permission)
end
-Authentication = M.new()
+local Authentication = M.new()
Authentication.users = M.Collection{type=User}
Authentication.roles = M.Collection{type=Role}
Authentication.permissions = M.Set{