The goal of this workshop is to restrict access to spreadsheets based on the active user.
The access permissions are stored in a repository; Up to you to verify access through a voter!
-
First we are going to add a
SpreadsheetAccessDecisionVoterto the application as described here. We’ll complete the implementation of thehasSpreadsheetAccessmethod in step 3. -
Now we have to configure the application properly, so the voter will be picked up by the configuration as described here
-
Now we go back to our
SpreadsheetAccessDecisionVoterand implement thehasSpreadsheetAccessmethod so our test will succeed.Don’t forget to make use of the access store to verify the access. Some hints can be found here