liquid_feedback_frontend
diff model/privilege.lua @ 281:b77e6a17ca77
Check unit voting right where neccessary, hide action buttons for units without voting right
author | bsw |
---|---|
date | Thu Feb 16 15:01:49 2012 +0100 (2012-02-16) |
parents | |
children | 30f97f4ee644 |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/model/privilege.lua Thu Feb 16 15:01:49 2012 +0100 1.3 @@ -0,0 +1,20 @@ 1.4 +Privilege = mondelefant.new_class() 1.5 +Privilege.table = 'privilege' 1.6 + 1.7 + 1.8 +Privilege:add_reference{ 1.9 + mode = 'm1', 1.10 + to = "Member", 1.11 + this_key = 'member_id', 1.12 + that_key = 'id', 1.13 + ref = 'member', 1.14 +} 1.15 + 1.16 +Privilege:add_reference{ 1.17 + mode = 'm1', 1.18 + to = "Unit", 1.19 + this_key = 'unit_id', 1.20 + that_key = 'id', 1.21 + ref = 'unit', 1.22 +} 1.23 +