Ruby-ACL 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/Ruby-ACL.rb +7 -7
- metadata +1 -1
data/lib/Ruby-ACL.rb
CHANGED
@@ -12,12 +12,16 @@ require 'date'
|
|
12
12
|
require 'ace_rule'
|
13
13
|
require 'rubyacl_exception'
|
14
14
|
|
15
|
-
#RubyACL is library that handles access permisions. RubyACL offers to create and
|
15
|
+
#RubyACL is library that handles access permisions. RubyACL offers to create and
|
16
|
+
#modify three ACL objects - three dimensions: Principal, Privilege, Resource
|
17
|
+
#object.
|
16
18
|
#Principal is someone or something that want to access.
|
17
19
|
#Privilege is level of access. (read, write etc.).
|
18
20
|
#Resource object is what is principal accessing.
|
19
|
-
#RubyACL uses API interface to communicate with database. This interface is
|
20
|
-
#
|
21
|
+
#RubyACL uses API interface to communicate with database. This interface is
|
22
|
+
#described by class API_inteface.
|
23
|
+
#At the end of the class you can see set of examples. Also good source of
|
24
|
+
#information are testcases.
|
21
25
|
class RubyACL
|
22
26
|
|
23
27
|
# name of the ACL
|
@@ -803,10 +807,6 @@ Access denied." if @report
|
|
803
807
|
|
804
808
|
end
|
805
809
|
|
806
|
-
#TODO Vzorovou tridu API s vyhazovanim vyjimek must be implemented
|
807
|
-
#TODO ptam se jestli nekdo kdo neexistuje ma pristup. Pozor na vyjimku, mel bych vratit rovnou false.
|
808
|
-
#TODO Lze pridat privilege do principal a naopak? test na to by byl peknej :)
|
809
|
-
|
810
810
|
##Usage example. Also very good source of information are test cases.
|
811
811
|
#puts "start"
|
812
812
|
#$:.unshift("../../eXistAPI/lib")
|