Skip to content

Commit 3b77338

Browse files
committed
Update AgentServices.cs
1 parent 86d76f9 commit 3b77338

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

MyApp.ServiceInterface/AgentServices.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -834,11 +834,11 @@ public async Task<object> Post(CompleteArtifactClassificationTask request)
834834
var media = db.SingleById<PublishedMedia>(mediaId);
835835
if (media == null)
836836
throw HttpError.NotFound("PublishedMedia could not be found");
837-
if (media.DeviceId != request.DeviceId && media.DeviceId != null)
838-
{
839-
if (!Request.GetClaimsPrincipal().IsAdmin())
840-
throw HttpError.Conflict("This Device does not own this PublishedMedia");
841-
}
837+
// if (media.DeviceId != request.DeviceId && media.DeviceId != null)
838+
// {
839+
// if (!Request.GetClaimsPrincipal().IsAdmin())
840+
// throw HttpError.Conflict("This Device does not own this PublishedMedia");
841+
// }
842842
media.Tags = request.Tags ?? media.Tags;
843843
media.Categories = request.Categories ?? media.Categories;
844844
media.Objects = request.Objects ?? media.Objects;

0 commit comments

Comments
 (0)