File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ;
You can’t perform that action at this time.
0 commit comments