X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=rt%2Fetc%2Fupgrade%2F4.0.1%2Fcontent;h=851c50291983bf70b9eb29ecf7fd396c7cad5f68;hp=cc3b5f14ab6f50a6fc9e9795942ef653b0554404;hb=7322f2afedcc2f427e997d1535a503613a83f088;hpb=ae14e320388fa5e7f400bff1c251ef885b7952e6 diff --git a/rt/etc/upgrade/4.0.1/content b/rt/etc/upgrade/4.0.1/content index cc3b5f14a..851c50291 100644 --- a/rt/etc/upgrade/4.0.1/content +++ b/rt/etc/upgrade/4.0.1/content @@ -50,6 +50,11 @@ our @Initial = ( sub { RT->Logger->debug('Removing all Delegate and PersonalGroup rights'); + # this temporarily tells the system that the rights exist so it can properly canonicalize them + RT::System->AddRight(Admin => AdminOwnPersonalGroups => 'Add right for 4.0.1 upgrade steps'); + RT::System->AddRight(Admin => AdminAllPersonalGroups => 'Add right for 4.0.1 upgrade steps'); + RT::System->AddRight(Admin => DelegateRights => 'Add right for 4.0.1 upgrade steps'); + my $acl = RT::ACL->new(RT->SystemUser); for my $right (qw/AdminOwnPersonalGroups AdminAllPersonalGroups DelegateRights/) { $acl->Limit( FIELD => 'RightName', VALUE => $right );