Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Player App - No Access to QuizPlayerStatsRestResource class #81

Closed
toddhalfpenny opened this issue Oct 12, 2020 · 3 comments
Closed

Player App - No Access to QuizPlayerStatsRestResource class #81

toddhalfpenny opened this issue Oct 12, 2020 · 3 comments
Labels
bug Something isn't working

Comments

@toddhalfpenny
Copy link

Summary

Error when quiz ends, seen by the players when the app tries to show them their stats at the end of the quiz.

App Version

Host app version (see bottom of host game page):
2.2.4

Player app version (see bottom of player registration page):
2.0.0

Steps To Reproduce:

  1. Run a quiz through to the end
  2. On the Player app screen you get an error about access to the QuizPlayerStatsRestResource class.

Expected result

You should see you're personal result (rank etc)

Actual result

You see an error

Additional information

I think the sdfx.QuizPlayerStatsRestResource class needs to be added to the Quiz_Host.permissionset or perhaps have a permission set for the Quiz_Player (to be used by the user that's used by the Heroku app).

@pozil
Copy link
Collaborator

pozil commented Oct 12, 2020

Hi @toddhalfpenny, thanks for reporting this.

With Winter '21 coming up, we need to assign permissions in order to access Apex classes.
I have anticipated that need since release 2.3.0 so you should be ok if you use the latest version of the host app (2.4.0 at time of writing). Can you confirm?

@toddhalfpenny
Copy link
Author

Yes, I am using 2.4.0 of the host app. The QuizPlayerStatsRestResource class was not in the perm set... I believe it needs to be there.

@pozil
Copy link
Collaborator

pozil commented Oct 12, 2020

Good catch @toddhalfpenny, you're absolutely right, I forgot that class.
I've just released v2.5.0 with a fix.

@pozil pozil closed this as completed Oct 12, 2020
@pozil pozil added the bug Something isn't working label Oct 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants