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

Bug:: Issue fix for ItemSlots not being usable #330

Merged
merged 2 commits into from
Jul 1, 2022

Conversation

AW0005
Copy link
Contributor

@AW0005 AW0005 commented Jun 19, 2022

Fixes the following situation:

  1. Non-Staff user has an item with the slot tag
  2. Non-Staff user attempts to use item with the slot tag to get a slot
  3. SlotService attempts to call createCharacter in the CharacterManager to create the slot
  4. User passed to createCharacter is not staff, so when it tries to log it as an adminAction, it fails.

@itinerare itinerare added the needs review Pull requests that are pending community review label Jun 19, 2022
@itinerare
Copy link
Collaborator

Hmm, the check to see if logging succeeds or fails is still relevant so I'd rather it not be removed. I think a better solution might be to have the logging function return true if the user is not staff...

@AW0005
Copy link
Contributor Author

AW0005 commented Jun 19, 2022

I can do that! I honestly had the same thought but didn't immediately have a solution.

@itinerare
Copy link
Collaborator

Fair enough!

@itinerare itinerare added the bug Something isn't working label Jun 19, 2022
@itinerare itinerare added reviewed Pull requests that have received community review and are pending merge and removed needs review Pull requests that are pending community review labels Jul 1, 2022
@itinerare itinerare merged commit c126d54 into corowne:develop Jul 1, 2022
@AW0005 AW0005 deleted the item_slot_bug branch July 10, 2022 19:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working reviewed Pull requests that have received community review and are pending merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants