Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2.1 Release #255

Merged
merged 25 commits into from
Sep 13, 2024
Merged
Changes from 1 commit
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
070f551
feat: Fully JWT authentication end to end
dogukanoksuz Jul 19, 2024
5dad41b
fix: Extension role changing keeps functions
dogukanoksuz Jul 22, 2024
35e5afb
fix: Helm chart issues
zekiahmetbayar Jul 26, 2024
82945b8
chore: Another update on deployment files
zekiahmetbayar Jul 30, 2024
d92e410
Merge branch 'master' into 2.1-dev
dogukanoksuz Jul 30, 2024
f84749d
fix: All extension functions that is broken from JWT transition
dogukanoksuz Jul 30, 2024
5d5db99
feat: Detailed license information
dogukanoksuz Aug 1, 2024
aeb0bb6
feat: Log rotation page fixes
dogukanoksuz Aug 12, 2024
274989a
chore: Code cleanup
dogukanoksuz Aug 13, 2024
0ff9ec7
chore: Changed default user model location
dogukanoksuz Aug 13, 2024
daa09c4
fix: Added missing function
dogukanoksuz Aug 26, 2024
91e8744
fix: Certificate retrieving issues on FQDN based hosts
dogukanoksuz Aug 28, 2024
b52b83f
feat: Updated limanctl executable
dogukanoksuz Aug 28, 2024
0dbceb4
feat: Laravel 10 update
dogukanoksuz Sep 2, 2024
6e1a6b0
fix: RHEL 8.10 compability fixes
dogukanoksuz Sep 3, 2024
e33456d
fix: Menu json response error
dogukanoksuz Sep 3, 2024
d44d47c
feat-wip: View modifier role system
dogukanoksuz Sep 4, 2024
b9eb714
feat-wip: Role based view customization system
dogukanoksuz Sep 5, 2024
9aab915
fix: Keycloak users cannot be deleted
dogukanoksuz Sep 6, 2024
a6a9327
feat: Username login support
dogukanoksuz Sep 6, 2024
24bde45
feat: View role system
dogukanoksuz Sep 6, 2024
e636db8
feat: Extension left menu support
dogukanoksuz Sep 9, 2024
4f7f853
chore: Rebuild
dogukanoksuz Sep 10, 2024
51d1d01
feat: Keycloak role permission system
dogukanoksuz Sep 10, 2024
4d8c160
feat: 2.1 Release
dogukanoksuz Sep 13, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
feat-wip: View modifier role system
  • Loading branch information
dogukanoksuz committed Sep 4, 2024
commit d44d47c294d409b2d24c5aba525910b531770283
53 changes: 53 additions & 0 deletions app/Http/Controllers/API/Settings/RoleController.php
Original file line number Diff line number Diff line change
@@ -600,6 +600,59 @@ public function deleteVariables(Request $request)
return response()->json('Fonksiyonlar başarıyla silindi.');
}

/**
* Role based system layout view settings
*/
public function views(Request $request)
{
$permissions = Permission::where([
'morph_id' => $request->role_id,
'type' => 'view',
])->get();

return response()->json($permissions);
}

/**
* Set role views
*
* @param Request $request
* @return JsonResponse
*/
public function setViews(Request $request)
{
Permission::where([
'morph_id' => $request->role_id,
'type' => 'view',
])->delete();

foreach ($request->views as $view) {
Permission::grant(
$request->role_id,
'view',
'name',
$view,
null,
'roles'
);
}

AuditLog::write(
'role',
'edit',
[
'changed_count' => count($request->views ?? []),
'type' => 'views',
'array' => $request->views
],
"ROLE_EDIT"
);

return response()->json([
'message' => 'Görünüm ayarları güncellendi.'
]);
}

/**
* Retrieve all roles
*
Loading