diff options
2 files changed, 4 insertions, 2 deletions
diff --git a/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/security/DefaultResourcePermissions.java b/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/security/DefaultResourcePermissions.java index 67069da3a36..1a3e9e21e46 100644 --- a/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/security/DefaultResourcePermissions.java +++ b/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/security/DefaultResourcePermissions.java @@ -21,6 +21,7 @@ package org.sonar.plugins.core.security; import org.apache.ibatis.session.SqlSession; import org.sonar.api.BatchExtension; +import org.sonar.api.ServerExtension; import org.sonar.api.config.Settings; import org.sonar.api.resources.Resource; import org.sonar.api.security.DefaultGroups; @@ -32,7 +33,7 @@ import org.sonar.core.user.*; /** * @since 3.2 */ -public class DefaultResourcePermissions implements ResourcePermissions, BatchExtension { +public class DefaultResourcePermissions implements ResourcePermissions, BatchExtension, ServerExtension { private final Settings settings; private final MyBatis myBatis; diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/security/ResourcePermissions.java b/sonar-plugin-api/src/main/java/org/sonar/api/security/ResourcePermissions.java index e63d963455d..dcfc77861ea 100644 --- a/sonar-plugin-api/src/main/java/org/sonar/api/security/ResourcePermissions.java +++ b/sonar-plugin-api/src/main/java/org/sonar/api/security/ResourcePermissions.java @@ -20,6 +20,7 @@ package org.sonar.api.security; import org.sonar.api.BatchComponent; +import org.sonar.api.ServerComponent; import org.sonar.api.resources.Resource; /** @@ -29,7 +30,7 @@ import org.sonar.api.resources.Resource; * * @since 3.2 */ -public interface ResourcePermissions extends BatchComponent { +public interface ResourcePermissions extends BatchComponent, ServerComponent { boolean hasRoles(Resource resource); |