Clean permissions tables
This commit is contained in:
parent
9f11cf77df
commit
26e2d3c4f0
@ -42,6 +42,12 @@ DROP TABLE llx_c_accountingaccount;
|
|||||||
|
|
||||||
-- For 8.0
|
-- For 8.0
|
||||||
|
|
||||||
|
delete from llx_rights_def where perms IS NULL;
|
||||||
|
delete from llx_user_rights where fk_user not IN (select rowid from llx_user);
|
||||||
|
delete from llx_usergroup_rights where fk_usergroup not in (select rowid from llx_usergroup);
|
||||||
|
delete from llx_usergroup_rights where fk_id not in (select id from llx_rights_def);
|
||||||
|
|
||||||
|
|
||||||
ALTER TABLE llx_c_type_fees ADD COLUMN llx_c_type_fees integer DEFAULT 0;
|
ALTER TABLE llx_c_type_fees ADD COLUMN llx_c_type_fees integer DEFAULT 0;
|
||||||
|
|
||||||
ALTER TABLE llx_product_fournisseur_price DROP COLUMN unitcharges;
|
ALTER TABLE llx_product_fournisseur_price DROP COLUMN unitcharges;
|
||||||
|
|||||||
@ -94,7 +94,11 @@ delete from llx_livraison where ref = '';
|
|||||||
delete from llx_expeditiondet where fk_expedition in (select rowid from llx_expedition where ref = '');
|
delete from llx_expeditiondet where fk_expedition in (select rowid from llx_expedition where ref = '');
|
||||||
delete from llx_expedition where ref = '';
|
delete from llx_expedition where ref = '';
|
||||||
delete from llx_holiday_logs where fk_user_update not IN (select rowid from llx_user);
|
delete from llx_holiday_logs where fk_user_update not IN (select rowid from llx_user);
|
||||||
|
|
||||||
|
delete from llx_rights_def where perms IS NULL;
|
||||||
delete from llx_user_rights where fk_user not IN (select rowid from llx_user);
|
delete from llx_user_rights where fk_user not IN (select rowid from llx_user);
|
||||||
|
delete from llx_usergroup_rights where fk_usergroup not in (select rowid from llx_usergroup);
|
||||||
|
delete from llx_usergroup_rights where fk_id not in (select id from llx_rights_def);
|
||||||
|
|
||||||
update llx_deplacement set dated='2010-01-01' where dated < '2000-01-01';
|
update llx_deplacement set dated='2010-01-01' where dated < '2000-01-01';
|
||||||
|
|
||||||
|
|||||||
@ -309,8 +309,6 @@ else
|
|||||||
{
|
{
|
||||||
if ($id)
|
if ($id)
|
||||||
{
|
{
|
||||||
$object->fetch($id);
|
|
||||||
|
|
||||||
$head = group_prepare_head($object);
|
$head = group_prepare_head($object);
|
||||||
$title = $langs->trans("Group");
|
$title = $langs->trans("Group");
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user