How to allow only the current user to see his own page ?

I created a page in a custom module. I want only the current user to access this page on their behalf.

For example, I am using it with ID 51. If I go to :

/user/51/tasks

I can see this page.

If I go on :

/user/78/tasks

I must have an error 403 access denied.

How to do this ?

turning off updates from admin, in production site

We have a typical 3-part environment for our website - Development / Staging / Production.

Is there an easy way, plugin or other tweak that can prevent modules from being updatable in the Production environment? Something that prevents a user from making unwanted code changes in the live site. When we copy down code to the Dev. environment, I would like that ability to update available though.

... or a server-side solution that I could propose to the server administrator?

There were errors validating the config synchronization

I am trying to synchronize settings between a dev install and the production install.  At one time I enabled and disabled the Field Layout module and I am not sure if that has anything to do with this error.  I have searched all over google but nothing really makes sense or apply.  When I do the import or the Drush cim I get this error:

[error] Drupal\Core\Config\ConfigImporterException: There were errors validating the config synchronization.

error : Component/Plugin/Discovery/DiscoveryTrait.php

Hi everybody, 


when i click on a link which should display a setting view in drupal. I have an error message: The website has encountered an unexpected error. Please try again later.
More detail report : 

Drupal 9 - After deployment and clearing cache site went down

Hi Everyone,

I am developing a web application with Drupal 9.

My local environment is Windows with Apache 2.4, PHP 7.3 and MySQL 5.7. I was in need of deploying it to UAT for testing purposes. The UAT environment is Ubuntu with Nginx, PHP 7.3 (FPM) and MySQL 5.7.

Pages

Subscribe with RSS Subscribe to RSS - Drupal 8.x