projects
/
kivitendo-erp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
26e884f
)
Administration: Wenn eine neue Authentifizierungsdatenbank angelegt wird und keine...
author
Moritz Bunkus
<m.bunkus@linet-services.de>
Wed, 25 Jun 2008 13:57:21 +0000
(13:57 +0000)
committer
Moritz Bunkus
<m.bunkus@linet-services.de>
Wed, 25 Jun 2008 13:57:21 +0000
(13:57 +0000)
bin/mozilla/admin.pl
patch
|
blob
|
history
diff --git
a/bin/mozilla/admin.pl
b/bin/mozilla/admin.pl
index
4248a9c
..
c22dc76
100644
(file)
--- a/
bin/mozilla/admin.pl
+++ b/
bin/mozilla/admin.pl
@@
-176,6
+176,18
@@
sub create_auth_tables {
$auth->set_session_value('rpw', $form->{rpw});
$auth->create_or_refresh_session();
+ if (!-f $memberfile) {
+ # New installation -- create a standard group with full access
+ my $group = {
+ 'name' => $locale->text('Full Access'),
+ 'description' => $locale->text('Full access to all functions'),
+ 'rights' => { map { $_ => 1 } SL::Auth::all_rights() },
+ 'members' => [ map { $_->{id} } values %members ],
+ };
+
+ $auth->save_group($group);
+ }
+
login();
}