update
- added materio_user.module (add permission to view the profile page) - materio_serach_api.pages : limit actu items for anonymous - materio_search_api_ajax.pages & materio_flag.pages : redirect to real page if current page not corresponding on ajax request (solve the view mode block visibility on user edit profile page) - materio_flag : added edit lists functionalities ++ get_list_page_title func Signed-off-by: bachy <git@g-u-i.net>
This commit is contained in:
22
materio_user.module
Normal file
22
materio_user.module
Normal file
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
|
||||
/**
|
||||
* Implements hook_permission().
|
||||
*/
|
||||
function materio_user_permission() {
|
||||
return array(
|
||||
'view own user profile' => array(
|
||||
'title' => t('view own user profile'),
|
||||
'description' => t('view own user profile'),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Implements hook_menu_alter().
|
||||
*/
|
||||
function materio_user_menu_alter(&$items) {
|
||||
$items['user/%user']['access callback'] = 'user_access';
|
||||
$items['user/%user']['access arguments'] = array('view own user profile');
|
||||
}
|
||||
Reference in New Issue
Block a user