Revision cde22209 src/gr/grnet/pithos/web/client/FilePublishDialog.java

b/src/gr/grnet/pithos/web/client/FilePublishDialog.java
157 157
        });
158 158

  
159 159
        // Only show the read for all permission if the user is the owner.
160
        if (file.getOwner().equals(app.getUserID())) {
160
        if (file.getOwnerID().equals(app.getUserID())) {
161 161
            final HorizontalPanel permForAll = new HorizontalPanel();
162 162
            permForAll.add(new Label("Public"));
163 163
            permForAll.add(readForAll);
......
222 222
	protected boolean accept() {
223 223
        Boolean published = null;
224 224
		if (readForAll.getValue() != file.isPublished())
225
			if (file.getOwner().equals(app.getUserID()))
225
			if (file.getOwnerID().equals(app.getUserID()))
226 226
                published = readForAll.getValue();
227 227
        updateMetaData(app.getApiPath(), app.getUserID(), file.getUri() + "?update=", published);
228 228
        return true;
......
233 233
            PostRequest updateFile = new PostRequest(api, owner, path) {
234 234
                @Override
235 235
                public void onSuccess(Resource result) {
236
                	HeadRequest<File> headFile = new HeadRequest<File>(File.class, app.getApiPath(), file.getOwner(), path, file) {
236
                	HeadRequest<File> headFile = new HeadRequest<File>(File.class, app.getApiPath(), file.getOwnerID(), path, file) {
237 237

  
238 238
						@Override
239 239
						public void onSuccess(File _result) {

Also available in: Unified diff