Fix collaboration equal issue.

This commit is contained in:
Paulo Gustavo Veiga
2012-11-14 20:17:55 -03:00
parent 2861a7b5f9
commit 16e59a0879
7 changed files with 40 additions and 22 deletions

View File

@@ -41,7 +41,7 @@ public abstract class BaseSecurityAdvice {
isAllowed = isAllowed(user, ((Integer) argument));
} else if (argument instanceof Collaborator) {
// Read operation find on the user are allowed ...
isAllowed = user.equals(argument);
isAllowed = user.equalCollab((Collaborator) argument);
} else {
throw new IllegalArgumentException("Argument " + argument);
}