Send Netdot-devel mailing list submissions to
[email protected]
To subscribe or unsubscribe via the World Wide Web, visit
https://osl.uoregon.edu/mailman/listinfo/netdot-devel
or, via email, send a message with subject or body 'help' to
[email protected]
You can reach the person managing the list at
[email protected]
When replying, please edit your Subject line so it is more specific
than "Re: Contents of Netdot-devel digest..."
Today's Topics:
1. [SCM] Netdot branch netdot-1.0 updated.
netdot-1.0.5-2-g79e8a59 ([email protected])
----------------------------------------------------------------------
Message: 1
Date: Wed, 9 Apr 2014 09:38:05 -0700
From: [email protected]
Subject: [Netdot-devel] [SCM] Netdot branch netdot-1.0 updated.
netdot-1.0.5-2-g79e8a59
To: [email protected]
Message-ID: <[email protected]>
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Netdot".
The branch, netdot-1.0 has been updated
via 79e8a5923fb199f3e1fb0b1cef07eb8ff4393db9 (commit)
from a7af5ed6ea30fb454cf899701b70acf694088493 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 79e8a5923fb199f3e1fb0b1cef07eb8ff4393db9
Author: Carlos Vicente <[email protected]>
Date: Wed Apr 9 12:37:48 2014 -0400
Fix delete bug in previous changes to rest/host
diff --git a/htdocs/rest/host b/htdocs/rest/host
index 764c36e..8ea64e1 100644
--- a/htdocs/rest/host
+++ b/htdocs/rest/host
@@ -373,11 +373,16 @@ if ( $rest->{request}->method eq 'GET' ){
eval {
Netdot::Model->do_transaction( sub{
foreach my $obj ( @objs_to_delete ){
+ # The object may have been cascade-deleted
+ next if ( ref($obj) eq
'Class::DBI::Object::Has::Been::Deleted' );
+
+ # Make sure user can do this
unless ( $manager->can($user, 'delete', $obj) ){
$rest->throw_rest(code=>Apache2::Const::HTTP_FORBIDDEN,
msg=>"User not allowed to delete this
object");
}
- $obj->delete();
+ $obj->delete();
+
}
});
};
-----------------------------------------------------------------------
Summary of changes:
htdocs/rest/host | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
hooks/post-receive
--
Netdot
------------------------------
_______________________________________________
Netdot-devel mailing list
[email protected]
https://osl.uoregon.edu/mailman/listinfo/netdot-devel
End of Netdot-devel Digest, Vol 85, Issue 5
*******************************************