|
|
@ -41,7 +41,7 @@ module AccessControlPermissionPatch |
|
|
|
found += granulars |
|
|
|
found += granulars |
|
|
|
|
|
|
|
|
|
|
|
result = found |
|
|
|
result = found |
|
|
|
while (found.count > 0) && recursive |
|
|
|
while (found.length > 0) && recursive |
|
|
|
found = found.collect{|p| p.inherits(false)}.flatten - result |
|
|
|
found = found.collect{|p| p.inherits(false)}.flatten - result |
|
|
|
result += found |
|
|
|
result += found |
|
|
|
end |
|
|
|
end |
|
|
@ -54,7 +54,7 @@ module AccessControlPermissionPatch |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
result = found = parent_perms(self) |
|
|
|
result = found = parent_perms(self) |
|
|
|
while (found.count > 0) && recursive |
|
|
|
while (found.length > 0) && recursive |
|
|
|
found = found.collect{|p| parent_perms(p)}.flatten - result |
|
|
|
found = found.collect{|p| parent_perms(p)}.flatten - result |
|
|
|
result += found |
|
|
|
result += found |
|
|
|
end |
|
|
|
end |
|
|
|