Subversion Repositories SmartDukaan

Rev

Rev 1153 | Rev 7286 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1153 Rev 2022
Line 306... Line 306...
306
	 * @param entityId
306
	 * @param entityId
307
	 * @return
307
	 * @return
308
	 */
308
	 */
309
	public boolean canAssign(String username, long entityId){
309
	public boolean canAssign(String username, long entityId){
310
		if(RoleManager.getRoleManager().hasPermission(userManager.getUserRole(username), Action.ASSIGN)){
310
		if(RoleManager.getRoleManager().hasPermission(userManager.getUserRole(username), Action.ASSIGN)){
-
 
311
		    return true;
-
 
312
		    /* Now content editor will be able to change status from ready to non ready
311
			EntityState state = StorageManager.getStorageManager().getEntityMetadata(entityId);
313
			EntityState state = StorageManager.getStorageManager().getEntityMetadata(entityId);
312
			if(state.getStatus() !=  EntityStatus.READY){
314
			if(state.getStatus() !=  EntityStatus.READY){
313
				return true;
315
				return true;
-
 
316
			}
314
			}else{
317
			else{
315
				if(userManager.getUserRole(username) == Role.ADMIN){
318
				if(userManager.getUserRole(username) == Role.ADMIN){
316
					return true;
319
					return true;
317
				}
320
				}
318
			}
321
			}
-
 
322
			*/
319
		}
323
		}
320
		return false;
324
		return false;
321
	}
325
	}
322
	
326
	
323
	/**
327
	/**