New: Task #10725
This commit is contained in:
parent
721d0a6afd
commit
4b83b8a909
@ -34,9 +34,14 @@ $langs->load("users");
|
|||||||
|
|
||||||
$module=isset($_GET["module"])?$_GET["module"]:$_POST["module"];
|
$module=isset($_GET["module"])?$_GET["module"]:$_POST["module"];
|
||||||
|
|
||||||
// Defini si peux modifier utilisateurs et permisssions
|
// Defini si peux lire les permissions
|
||||||
$caneditperms=($user->admin || $user->rights->user->user->creer);
|
$canreadperms=($user->admin || ($user->rights->user->group->read && $user->rights->user->group->readperms));
|
||||||
$caneditselfperms=($user->admin || $user->rights->user->self->perms);
|
|
||||||
|
if (! $canreadperms) accessforbidden();
|
||||||
|
|
||||||
|
// Defini si peux modifier les permissions
|
||||||
|
$caneditperms=($user->admin || $user->rights->user->group->write);
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Actions
|
* Actions
|
||||||
|
|||||||
@ -3,7 +3,7 @@
|
|||||||
* Copyright (C) 2002-2003 Jean-Louis Bergamo <jlb@j1b.org>
|
* Copyright (C) 2002-2003 Jean-Louis Bergamo <jlb@j1b.org>
|
||||||
* Copyright (C) 2004-2010 Laurent Destailleur <eldy@users.sourceforge.net>
|
* Copyright (C) 2004-2010 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
* Copyright (C) 2004 Eric Seigne <eric.seigne@ryxeo.com>
|
* Copyright (C) 2004 Eric Seigne <eric.seigne@ryxeo.com>
|
||||||
* Copyright (C) 2005-2009 Regis Houssin <regis@dolibarr.fr>
|
* Copyright (C) 2005-2010 Regis Houssin <regis@dolibarr.fr>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU General Public License as published by
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user