This repository was archived by the owner on Dec 5, 2024. It is now read-only.
Repository navigation
Report the correct editing status to Unity. Fixes #934 - #959
Merged
Merged
Conversation
There's two issues going on here - The `loggedInUser` field wasn't getting seeded with user information on load, so checking whether the current user owns a lock would always fail until the connections changed event got triggered somehow - `GetLock` didn't account for not having user information, so if the user was logged out, it would default to not allowing any edits. Since the info wasn't getting seeded, it would always report files as being locked by someone else. It now defaults to allowing edits if the user isn't signed in. Now, this isn't a bug, but if the user is not signed in, all bets are kinda off on validating locks. We should probably warn the user that we can't check whether they own the lock, but we should probably not lock down Unity entirely because of it.
shana
force-pushed
the
fixes/934-inspector-disabled
branch
from
November 19, 2018 14:45
18a3a75 to
be137f8
Compare
shana
force-pushed
the
fixes/934-inspector-disabled
branch
from
November 19, 2018 15:13
be137f8 to
84c543f
Compare
StanleyGoldman
force-pushed
the
fixes/934-inspector-disabled
branch
from
November 26, 2018 20:26
3c68631 to
84c543f
Compare
StanleyGoldman
left a comment
Contributor
There was a problem hiding this comment.
Where or how is this preprocessor directive set?
StanleyGoldman
left a comment
Contributor
There was a problem hiding this comment.
Can you tell me a bit more about this function call?
StanleyGoldman
previously requested changes
Nov 27, 2018
StanleyGoldman
left a comment
Contributor
There was a problem hiding this comment.
This seems like something we will forget one day...
Contributor
|
Okay, I understand all of this now. I'll do some tests against the newer version of Unity and I'll be ready to merge this. |
StanleyGoldman
approved these changes
Nov 28, 2018
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
There's two issues going on here:
The
loggedInUserfield wasn't getting seeded with user information on load, so checking whether the current user owns a lock would always fail until the connections changed event got triggered somehowGetLockdidn't account for not having user information, so if the user was logged out, it would default to not allowing any edits. Since the info wasn't getting seeded, it would always report files as being locked by someone else. It now defaults to allowing edits if the user isn't signed in. Now, this isn't a bug, but if the user is not signed in, all bets are kinda off on validating locks. We should probably warn the user that we can't check whether they own the lock, but we should probably not lock down Unity entirely because of it.