Skip to content

Commit

Permalink
installer fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Praesidiarius committed Jan 23, 2020
1 parent 8368360 commit ad1189f
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions data/data.sql
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ INSERT INTO `permission` (`permission_key`, `module`, `label`, `nav_label`, `nav
('edit', 'OnePlace\\User\\Controller\\UserController', 'Edit', '', '', 0),
('index', 'OnePlace\\User\\Controller\\UserController', 'Index', 'Users', '/user', 1),
('updateindexcolumnsort', 'OnePlace\\User\\Controller\\UserController', 'Update Column Index', '', '', 0),
('settheme', 'OnePlace\\User\\Controller\\UserController', 'Set own Theme', '', '', 0),
('view', 'OnePlace\\User\\Controller\\UserController', 'View', '', '', 0);

--
Expand Down
4 changes: 2 additions & 2 deletions data/structure.sql
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ CREATE TABLE `permission` (
`permission_key` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
`module` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
`label` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`nav_label` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
`nav_href` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
`nav_label` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
`nav_href` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
`show_in_menu` tinyint(1) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

Expand Down
2 changes: 1 addition & 1 deletion src/Model/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ public function getTheme() {
public function updatePermissions(array $aPermissions) {
$aMyPermsDB = CoreEntityModel::$aEntityTables['user-permission']->delete(['user_idfs'=>$this->getID()]);

$aBasePermissions = ['index-Application-Controller-IndexController'];
$aBasePermissions = [];
$aPermissions = array_merge($aBasePermissions,$aPermissions);

foreach($aPermissions as $sPermWithModule) {
Expand Down
2 changes: 1 addition & 1 deletion src/Module.php
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ function($e) {
/**
* Setup before First Login
*/
if(!file_exists($_SERVER['DOCUMENT_ROOT'].'/../config/autoload/local.php')) {
if(!file_exists($_SERVER['DOCUMENT_ROOT'].'/../config/autoload/local.php') && $sRouteName != 'setup') {
echo $sRouteName;
echo 'no config yet';

Expand Down

0 comments on commit ad1189f

Please sign in to comment.