From c63da7a8fca83ac0f4c2e0c87f8f82ba0e4789c0 Mon Sep 17 00:00:00 2001 From: Niclas Zimmermann Date: Thu, 13 Jun 2013 10:26:39 +0200 Subject: [PATCH] =?utf8?q?L=C3=B6scht=20das=20Upgrade-Script=20f=C3=BCr=20?= =?utf8?q?Userrights?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Im letzten Commit für die Verschiebung des Upgrade-Scripts productivity_rights.pl blieb die Datei bestehen. Das sollte nicht so sein. --- sql/Pg-upgrade2/productivity_rights.pl | 27 -------------------------- 1 file changed, 27 deletions(-) delete mode 100644 sql/Pg-upgrade2/productivity_rights.pl diff --git a/sql/Pg-upgrade2/productivity_rights.pl b/sql/Pg-upgrade2/productivity_rights.pl deleted file mode 100644 index 4dd0270da..000000000 --- a/sql/Pg-upgrade2/productivity_rights.pl +++ /dev/null @@ -1,27 +0,0 @@ -# @tag: productivity_rights -# @description: Setzt das Recht die Produktivität einzusehen und das Recht den Link zum Admin-Menü anzuzeigen wieder wie vorher -# @depends: release_3_0_0 -package SL::DBUpgrade2::productivity_rights; - -use strict; -use utf8; - -use parent qw(SL::DBUpgrade2::Base); - -use SL::DBUtils; - -sub run { - my ($self) = @_; - - my $groups = $main::auth->read_groups(); - - foreach my $group (values %{$groups}) { - $group->{rights}->{productivity} = 1 unless defined $group->{rights}->{productivity}; - $group->{rights}->{display_admin_link} = 1 unless defined $group->{rights}->{display_admin_link}; - $main::auth->save_group($group); - } - - return 1; -} # end run - -1; -- 2.20.1