[Jifty-commit] r6215 - in jifty/trunk: . lib
Jifty commits
jifty-commit at lists.jifty.org
Fri Jan 9 02:45:50 EST 2009
Author: sunnavy
Date: Fri Jan 9 02:45:49 2009
New Revision: 6215
Added:
jifty/trunk/lib/
- copied from r6214, /jifty/trunk/lib/
Modified:
jifty/trunk/ (props changed)
jifty/trunk/lib/Jifty/Plugin/ActorMetadata/Mixin/Model/ActorMetadata.pm
Log:
r6226 at sunnavys-mb: sunnavy | 2009-01-09 15:44:34 +0800
comment the limit: only creator can update or delete record
Modified: jifty/trunk/lib/Jifty/Plugin/ActorMetadata/Mixin/Model/ActorMetadata.pm
==============================================================================
--- /jifty/trunk/lib/Jifty/Plugin/ActorMetadata/Mixin/Model/ActorMetadata.pm (original)
+++ jifty/trunk/lib/Jifty/Plugin/ActorMetadata/Mixin/Model/ActorMetadata.pm Fri Jan 9 02:45:49 2009
@@ -103,7 +103,6 @@
=head2 current_user_can
Rejects creation unless there's a current_user.
-Rejects update or deletion unless the current_user is the creator. (Jesse says: this feels like wrong logic for this mixin)
=cut
@@ -118,9 +117,10 @@
return undef unless ($self->current_user and $self->current_user->id);
}
- if ($action eq 'update' or $action eq 'delete') {
- return undef unless $self->current_user_is_owner;
- }
+#Rejects update or deletion unless the current_user is the creator. (Jesse says: this feels like wrong logic for this mixin)
+# if ($action eq 'update' or $action eq 'delete') {
+# return undef unless $self->current_user_is_owner;
+# }
return 1;
}
More information about the Jifty-commit
mailing list