loginUser( e1.getOmeName() ); iAdmin.changePermissions(i, Permissions.EMPTY); iAdmin.changePermissions(i, Permissions.DEFAULT); loginRoot(); iAdmin.changePermissions(i, Permissions.EMPTY); iAdmin.changePermissions(i, Permissions.DEFAULT);
	public void testUserCanOnlySetDetailsOnOwnObject() throws Exception 	{		Experimenter e1 = testExperimenter();		iAdmin.createUser( e1 );				loginUser( e1.getOmeName() );				Image i = new Image(); i.setName( "test" );		i = iUpdate.saveAndReturnObject( i );				// this user should not be able to change things		Experimenter e2 = testExperimenter();		iAdmin.createUser( e2 );		loginUser( e2.getOmeName() );				try { 			iAdmin.changeOwner(i, e2.getOmeName() );			fail ("secvio!");		} catch (SecurityViolation sv) {}		try { 			iAdmin.changeGroup(i, "system" );			fail ("secvio!");		} catch (SecurityViolation sv) {}		try { 			iAdmin.changePermissions(i, Permissions.EMPTY );			fail ("secvio!");		} catch (SecurityViolation sv) {}			}