role_based_authorization 0.1.6 → 0.1.7
Sign up to get free protection for your applications and to get access to all the features.
data/README.rdoc
CHANGED
@@ -36,7 +36,6 @@ The library poses few and very reasonable constraints on your application. Namel
|
|
36
36
|
* that your controllers provide a 'current_user' method
|
37
37
|
* that the user object (returned by the 'current_user' method) implements the following two methods:
|
38
38
|
* role: returning the role of the current user; roles can be anything (I personally use integers). This is usually implemented by adding a 'role' column to your model.
|
39
|
-
* description: used for logging purposes
|
40
39
|
|
41
40
|
== Permission statements
|
42
41
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.7
|
@@ -162,7 +162,7 @@ module RoleBasedAuthorization
|
|
162
162
|
controller = controller_name if controller.nil? && respond_to?(:controller_name)
|
163
163
|
|
164
164
|
AUTHORIZATION_LOGGER.info("user %s requested access to method %s:%s using ids:%s" %
|
165
|
-
[ user && user.
|
165
|
+
[ user && user.inspect + "(id:#{user.id} role:#{user.role})" || 'none',
|
166
166
|
controller,
|
167
167
|
action,
|
168
168
|
ids.inspect])
|