[Rt-commit] rt branch, 4.2/load-object-in-scalar-context, repushed
? sunnavy
sunnavy at bestpractical.com
Tue Aug 20 18:11:40 EDT 2013
The branch 4.2/load-object-in-scalar-context was deleted and repushed:
was f86419cfc28b4d9f862fd7ed2003147a20623920
now d9749a2f80b55b6552204aaa0d77071878be5011
1: f86419c ! 1: d9749a2 return status only in scalar context is more useful for Load... methods
@@ -195,6 +195,11 @@
--- a/lib/RT/SharedSetting.pm
+++ b/lib/RT/SharedSetting.pm
@@
+ $self->{'Privacy'} = $privacy;
+ $self->PostLoad();
+
+- return (0, $self->loc("Permission Denied"))
++ return wantarray ? (0, $self->loc("Permission Denied")) : 0
unless $self->CurrentUserCanSee;
my ($ok, $msg) = $self->PostLoadValidate;
More information about the Rt-commit
mailing list