Skip to content

Commit

Permalink
Merge pull request #4 from openjournalteam/public
Browse files Browse the repository at this point in the history
Prepare Public Release
  • Loading branch information
rahmanramsi authored May 2, 2024
2 parents 6a9cce9 + 967524c commit 3c71409
Show file tree
Hide file tree
Showing 11 changed files with 715 additions and 117 deletions.
6 changes: 0 additions & 6 deletions .github/package.json

This file was deleted.

5 changes: 0 additions & 5 deletions .github/s3.json

This file was deleted.

18 changes: 0 additions & 18 deletions .github/workflows/cleanWorflowLog.yml

This file was deleted.

71 changes: 0 additions & 71 deletions .github/workflows/s3sync.yml

This file was deleted.

1 change: 0 additions & 1 deletion CHANGELOG.md

This file was deleted.

11 changes: 1 addition & 10 deletions JournalEditorRestrictionPlugin.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,6 @@

class JournalEditorRestrictionPlugin extends GenericPlugin
{
public function getHideManagement()
{
return true;
}

/**
* @copydoc Plugin::register()
* Nama file class dan nama folder tidak boleh sama.
Expand All @@ -46,7 +41,6 @@ public function loadHandler($hookName, $args)
$requestedPage = $router->getRequestedPage($request);
$requestedOp = $router->getRequestedOp($request);
$requestedArgs = $router->getRequestedArgs($request);

// Restrict user to access some pages when the menu is removed
switch ($requestedPage) {
case 'management':
Expand All @@ -57,10 +51,7 @@ public function loadHandler($hookName, $args)
'distribution',
'access'
];
if (
($requestedOp == 'settings' && !empty(array_intersect($blackListArgs, $requestedArgs))) ||
$requestedOp == 'tools'
) {
if (($requestedOp == 'settings' && !empty(array_intersect($blackListArgs, $requestedArgs))) || $requestedOp == 'tools') {
$request->redirectHome();
}
break;
Expand Down
Loading

0 comments on commit 3c71409

Please sign in to comment.