Skip to content
Snippets Groups Projects
Commit 8074f151 authored by tpylak's avatar tpylak
Browse files

LMS-1584 fix: add authorization

SVN: 16728
parent f274048f
No related branches found
No related tags found
No related merge requests found
...@@ -437,7 +437,8 @@ public interface IETLLIMSService extends IServer, ISessionProvider ...@@ -437,7 +437,8 @@ public interface IETLLIMSService extends IServer, ISessionProvider
*/ */
@Transactional(readOnly = true) @Transactional(readOnly = true)
@RolesAllowed(RoleSet.ETL_SERVER) @RolesAllowed(RoleSet.ETL_SERVER)
public ExternalData tryGetDataSetForServer(String sessionToken, String dataSetCode) public ExternalData tryGetDataSetForServer(String sessionToken,
@AuthorizationGuard(guardClass = DataSetCodePredicate.class) String dataSetCode)
throws UserFailureException; throws UserFailureException;
} }
...@@ -437,7 +437,8 @@ public interface IETLLIMSService extends IServer, ISessionProvider ...@@ -437,7 +437,8 @@ public interface IETLLIMSService extends IServer, ISessionProvider
*/ */
@Transactional(readOnly = true) @Transactional(readOnly = true)
@RolesAllowed(RoleSet.ETL_SERVER) @RolesAllowed(RoleSet.ETL_SERVER)
public ExternalData tryGetDataSetForServer(String sessionToken, String dataSetCode) public ExternalData tryGetDataSetForServer(String sessionToken,
@AuthorizationGuard(guardClass = DataSetCodePredicate.class) String dataSetCode)
throws UserFailureException; throws UserFailureException;
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment