Skip to main content
deleted 59 characters in body; edited tags; edited title
Source Link
Krishna Mohan
  • 6.3k
  • 9
  • 30
  • 55

How to hide user profile(edit current password, email, picture, everything) based on role in Drupal-7?

I am using Drupal 7.

When user logged in with common shared username and password, I wanted to hide user profile for some of the user based on the given role.

So, I want a feature where user can just logged in and logged out with the given shared user name and password. And and, I don't want to allow them to change their password or I don't want to allow them to edit in their profile.

I have created separate role for this users.

I came to know that we can hide edit user profile with css: displayCSS: none;

display: none;

Is there any other way to hide user profile based on some roles?

Appreciate your help.

Thanks!

How to hide user profile(edit current password, email, picture, everything) based on role in Drupal-7?

I am using Drupal 7.

When user logged in with common shared username and password, I wanted to hide user profile for some of the user based on the given role.

So, I want a feature where user can just logged in and logged out with the given shared user name and password. And, I don't want to allow them to change their password or I don't want to allow them to edit in their profile.

I have created separate role for this users.

I came to know that we can hide edit user profile with css: display: none;

Is there any other way to hide user profile based on some roles?

Appreciate your help.

Thanks!

How to hide user profile(edit current password, email, picture, everything) based on role?

When user logged in with common shared username and password, I wanted to hide user profile for some of the user based on the given role.

So, I want a feature where user can just logged in and logged out with the given shared user name and password and, I don't want to allow them to change their password or I don't want to allow them to edit in their profile.

I have created separate role for this users.

I came to know that we can hide edit user profile with CSS:

display: none;

Is there any other way to hide user profile based on some roles?

Source Link
Vidushi
  • 419
  • 4
  • 15

How to hide user profile(edit current password, email, picture, everything) based on role in Drupal-7?

I am using Drupal 7.

When user logged in with common shared username and password, I wanted to hide user profile for some of the user based on the given role.

So, I want a feature where user can just logged in and logged out with the given shared user name and password. And, I don't want to allow them to change their password or I don't want to allow them to edit in their profile.

I have created separate role for this users.

I came to know that we can hide edit user profile with css: display: none;

Is there any other way to hide user profile based on some roles?

Appreciate your help.

Thanks!