Module ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias ImportFrom alias ClassDef bases NameLoad body Expr Str Assign NameStore Num FunctionDef arguments args NameParam defaults body Return AttributeLoad AttributeLoad NameLoad attr attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr If Call AttributeLoad NameLoad attr body Expr Call AttributeLoad Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr attr orelse Expr Call NameLoad keyword AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Return Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr decorator_list decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Return BoolOpOr BoolOpAnd Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr CompareEq AttributeLoad NameLoad attr NameLoad BoolOpAnd CompareEq AttributeLoad NameLoad attr NameLoad NameLoad decorator_list Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Str
N/A nagare security peak.rules when nagare.security common kansha.card Card kansha.cardextension CardExtension kansha.board VOTES_PUBLIC VOTES_MEMBERS models DataVote Votes N/A CardExtension N/A N/A Vote component N/A LOAD_PRIORITY 70 allowed N/A N/A self N/A N/A N/A N/A N/A self configurator votes_allowed N/A property count_votes N/A N/A self N/A N/A N/A Returns number of votes for a card N/A N/A N/A DataVote count_votes N/A N/A self card data N/A toggle N/A N/A self N/A N/A N/A Add a vote to the current card.

        Remove vote if user has already voted
         N/A N/A N/A security check_permissions vote self N/A user N/A N/A security get_user N/A N/A N/A self has_voted N/A N/A N/A N/A N/A N/A DataVote get_vote N/A N/A self card data N/A user data delete N/A N/A N/A DataVote card N/A N/A self card data user N/A user data N/A has_voted N/A N/A self N/A N/A N/A Check if the current user already vote for this card N/A user N/A N/A security get_user N/A N/A N/A DataVote has_voted N/A N/A self card data N/A user data N/A N/A has_permission_Card_vote N/A N/A self user perm votes N/A N/A N/A N/A N/A N/A N/A security has_permissions edit N/A votes card N/A N/A votes allowed VOTES_MEMBERS N/A N/A N/A votes allowed VOTES_PUBLIC user N/A N/A when N/A N/A common Rules has_permission user and perm == 'vote' and isinstance(subject, Votes)