-
Notifications
You must be signed in to change notification settings - Fork 10.5k
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
Anonymous use #5986
Merged
Merged
Anonymous use #5986
Changes from 1 commit
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
6da69c4
Init work with anonymous use
rodrigok 94f5806
Show username window when necessary
rodrigok 9427501
Code improvement
rodrigok 66ec972
Use setting instead of permission
rodrigok 29c16f8
Back old code
rodrigok 0cf06d5
Back old code
rodrigok c5bad07
Show account information
rodrigok 2d534a2
Make sportlight work for anonymous
rodrigok 70198c9
Add button to go to login when anonymous
rodrigok a4d71ef
Reload current room after user registration
rodrigok fe807cd
List default channels for anonymous users
rodrigok 28a8c8b
Rename channels-anonymous
rodrigok 1455f88
Code improvement
rodrigok 97162d8
Reload current room on login
rodrigok fd5e2bb
Do not show user information for anonymous users
rodrigok c7cf9ef
Improve spotlight search for anonymous users
rodrigok b0b804e
Merge remote-tracking branch 'origin/develop' into improvements/anony…
rodrigok 3b389c5
Merge remote-tracking branch 'origin/develop' into improvements/anony…
rodrigok 3d4aaa1
Merge remote-tracking branch 'origin/develop' into improvements/anony…
rodrigok cd30525
Clear session var `forceLogin` on login/register
rodrigok 5b6c0c2
Merge remote-tracking branch 'origin/develop' into improvements/anony…
rodrigok 59680c3
Remove lesshat references
rodrigok 5fe89ae
Update test lib and stop on first fail
rodrigok e864b18
Fix tests
rodrigok File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
4 changes: 3 additions & 1 deletion
4
packages/rocketchat-authorization/client/lib/ChatPermissions.js
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
RocketChat.authz.cachedCollection = new RocketChat.CachedCollection({ | ||
name: 'permissions', | ||
eventType: 'onLogged' | ||
eventType: 'onLogged', | ||
userRelated: false | ||
}); | ||
RocketChat.authz.cachedCollection.init(); | ||
|
||
this.ChatPermissions = RocketChat.authz.cachedCollection.collection; |
6 changes: 3 additions & 3 deletions
6
packages/rocketchat-authorization/server/functions/canAccessRoom.js
This file contains 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
10 changes: 6 additions & 4 deletions
10
packages/rocketchat-authorization/server/functions/hasPermission.js
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
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 was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will prevent the username screen for normal users too