[Jifty-commit] r4185 - in apps/CASPlus/trunk: lib/CASPlus/Model
jifty-commit at lists.jifty.org
jifty-commit at lists.jifty.org
Tue Oct 2 12:03:45 EDT 2007
Author: sterling
Date: Tue Oct 2 12:03:45 2007
New Revision: 4185
Modified:
apps/CASPlus/trunk/ (props changed)
apps/CASPlus/trunk/lib/CASPlus/Model/RoleMember.pm
apps/CASPlus/trunk/lib/CASPlus/Model/RoleMemberPathCache.pm
Log:
r12776 at dynpc145: andrew | 2007-10-02 10:35:47 -0500
Changing access permissions to allow the role cache to be calculated. This is WAY too permissive at the moment.
Modified: apps/CASPlus/trunk/lib/CASPlus/Model/RoleMember.pm
==============================================================================
--- apps/CASPlus/trunk/lib/CASPlus/Model/RoleMember.pm (original)
+++ apps/CASPlus/trunk/lib/CASPlus/Model/RoleMember.pm Tue Oct 2 12:03:45 2007
@@ -95,6 +95,9 @@
sub current_user_can {
my ($self, $right, %args) = @_;
+ # FIXME TODO XXX I need to come up with a better limitation than these.
+ return 1;
+
# Is this the current user?
if ($right eq 'read' && $self->current_user->id == $self->the_user->id) {
return 1;
Modified: apps/CASPlus/trunk/lib/CASPlus/Model/RoleMemberPathCache.pm
==============================================================================
--- apps/CASPlus/trunk/lib/CASPlus/Model/RoleMemberPathCache.pm (original)
+++ apps/CASPlus/trunk/lib/CASPlus/Model/RoleMemberPathCache.pm Tue Oct 2 12:03:45 2007
@@ -41,6 +41,11 @@
is immutable;
};
+# XXX TODO FIXME I need to come up with a better limit here.
+sub current_user_can {
+ return 1;
+}
+
=head1 AUTHOR
Andrew Sterling Hanenkamp C<< <andrew.hanenkamp at boomer.com> >>
More information about the Jifty-commit
mailing list