Hi, I would like to use logic programing to describe permissions. The definition is
We have set of triples which looks like: Set of roles; set of operations; set of states Triples are defined in scope of some entity with states, wildcard is defined with _ All I need is to answer on some operation invocation if given user with his role is able to execute that operation for particular entity which is in one of its states Example: Roles: admin, operator, auditor Entity: data form with states dirty, applied, rejected, executed Operations on data form: reject, acept, list, enter Triples of permissions: admin, operator; reject, accept; applied auditor, operator; list; _ operator; enter; dirty The additional question beside checking permission is: What are operations avaiable for given role and given state of entity Any thoughts? Maybe core.logic? It seems that I know its purpose but don't know how to use it. Thanks in advance. -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en