Skip to content
Projects
Groups
Snippets
Help
Sign in / Register
Toggle navigation
Minds Backend - Engine
Project overview
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
270
Merge Requests
34
CI / CD
Security & Compliance
Packages
Analytics
Wiki
Snippets
Members
Collapse sidebar
Close sidebar
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Minds
Minds Backend - Engine
Commits
671648e2
Commit
671648e2
authored
54 minutes ago
by
Marcelo Rivera
Browse files
Options
Download
(fix): lint
parent
b5d4f380
feat/hide-share-buttons
1 merge request
!463
Allow users to permanently hide "share" buttons in settings
Pipeline
#116939984
passed with stages
in 8 minutes and 19 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
9 deletions
+10
-9
Entities/User.php
View file @
671648e2
...
...
@@ -676,6 +676,14 @@ class User extends \ElggUser
return
((
int
)
$this
->
email_confirmed_at
)
?:
null
;
}
/**
* @return bool
*/
public
function
isEmailConfirmed
()
:
bool
{
return
(
bool
)
$this
->
email_confirmed_at
;
}
/**
* @return bool
*/
...
...
@@ -688,19 +696,12 @@ class User extends \ElggUser
* @param bool $value
* @return User
*/
public
function
setHideShareButtons
(
bool
$value
)
:
User
{
public
function
setHideShareButtons
(
bool
$value
)
:
User
{
$this
->
hide_share_buttons
=
$value
;
return
$this
;
}
/**
* @return bool
*/
public
function
isEmailConfirmed
()
:
bool
{
return
(
bool
)
$this
->
email_confirmed_at
;
}
/**
* Subscribes user to another user.
*
...
...
This diff is collapsed.
Please
register
or
sign in
to comment