Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
Rocket.Chat
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
RocketChat
Rocket.Chat
Commits
430e0b01
Commit
430e0b01
authored
9 years ago
by
Diego Sampaio
Browse files
Options
Downloads
Patches
Plain Diff
support roomTypes with no permissions
parent
4048ddb6
Loading
Loading
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
packages/rocketchat-lib/lib/roomTypes.coffee
+1
-1
1 addition, 1 deletion
packages/rocketchat-lib/lib/roomTypes.coffee
with
1 addition
and
1 deletion
packages/rocketchat-lib/lib/roomTypes.coffee
+
1
−
1
View file @
430e0b01
...
...
@@ -33,7 +33,7 @@ RocketChat.roomTypes = new class
getAllTypes
=
->
typesPermitted
=
[]
roomTypesOrder
.
forEach
(
type
)
->
if
roomTypes
[
type
].
permissions
?
and
RocketChat
.
authz
.
hasAtLeastOnePermission
roomTypes
[
type
].
permissions
if
not
roomTypes
[
type
].
permissions
?
or
RocketChat
.
authz
.
hasAtLeastOnePermission
roomTypes
[
type
].
permissions
typesPermitted
.
push
roomTypes
[
type
]
return
typesPermitted
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment