throw ScmSecurityException instead of IllegalStateException

This commit is contained in:
Sebastian Sdorra
2011-02-15 16:57:01 +01:00
parent 9184c07370
commit 5c4ab6b77d

View File

@@ -45,6 +45,7 @@ import sonia.scm.web.security.WebSecurityContext;
import java.util.Collection;
import java.util.List;
import sonia.scm.security.ScmSecurityException;
/**
*
@@ -66,7 +67,7 @@ public class PermissionUtil
{
if (!hasPermission(repository, securityContext, pt))
{
throw new IllegalStateException("action denied");
throw new ScmSecurityException("action denied");
}
}