Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
4f76331d
Commit
4f76331d
authored
Feb 08, 2019
by
Camil Staps
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make users.private_profile default false (previously had no default value)
parent
73e6ba44
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
app/models/user.rb
app/models/user.rb
+2
-2
No files found.
app/models/user.rb
View file @
4f76331d
...
@@ -284,11 +284,11 @@ class User < ApplicationRecord
...
@@ -284,11 +284,11 @@ class User < ApplicationRecord
scope
:with_dashboard
,
->
(
dashboard
)
{
where
(
dashboard:
dashboard
)
}
scope
:with_dashboard
,
->
(
dashboard
)
{
where
(
dashboard:
dashboard
)
}
scope
:with_visible_profile
,
->
(
user
)
{
scope
:with_visible_profile
,
->
(
user
)
{
if
user
.
nil?
if
user
.
nil?
where
(
private_profile:
[
false
,
nil
]
)
where
(
private_profile:
false
)
elsif
user
.
admin?
elsif
user
.
admin?
all
all
else
else
where
(
private_profile:
[
false
,
nil
]
).
or
where
(
id:
user
.
id
)
where
(
private_profile:
false
).
or
where
(
id:
user
.
id
)
end
end
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment