Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
profile
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
profile
Merge requests
!1
Grant permissions to view own profiles to authenticated users on module install.
Code
Review changes
Check out branch
Download
Patches
Plain diff
Open
Grant permissions to view own profiles to authenticated users on module install.
issue/profile-3189601:3189601-no-permissions-by
into
8.x-1.x
Overview
0
Commits
1
Pipelines
0
Changes
1
Open
Jernej Mramor
requested to merge
issue/profile-3189601:3189601-no-permissions-by
into
8.x-1.x
4 years ago
Overview
0
Commits
1
Pipelines
0
Changes
1
Expand
Closes
#3189601
0
0
Merge request reports
Compare
8.x-1.x
8.x-1.x (HEAD)
and
latest version
latest version
24ab920e
1 commit,
4 years ago
1 file
+
14
−
0
Side-by-side
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
profile.install
+
14
−
0
Options
@@ -223,3 +223,17 @@ function profile_update_8010() {
@@ -223,3 +223,17 @@ function profile_update_8010() {
$field_definition
->
setTranslatable
(
FALSE
);
$field_definition
->
setTranslatable
(
FALSE
);
$definition_update_manager
->
updateFieldStorageDefinition
(
$field_definition
);
$definition_update_manager
->
updateFieldStorageDefinition
(
$field_definition
);
}
}
/**
* Give permission to view own profiles to authenticated users.
*/
function
profile_install
(
$is_syncing
)
{
user_role_grant_permissions
(
'authenticated'
,
[
'view own profiles'
,
'view own unpublished profiles'
]);
}
/**
* Revokes permission on module uninstall.
*/
function
profile_uninstall
(
$is_syncing
)
{
user_role_revoke_permissions
(
'authenticated'
,
[
'view own profiles'
,
'view own unpublished profiles'
]);
}
Loading