Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
OSE
Manage
Activity
Members
Labels
Plan
Wiki
Redmine
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
open-source
OSE
Commits
d5515a75
Commit
d5515a75
authored
Dec 18, 2019
by
Laurent Lecluse
Browse files
Options
Downloads
Patches
Plain Diff
Admin a tous les droits
bug cache résolu
parent
06f21393
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
CHANGELOG.md
+7
-0
7 additions, 0 deletions
CHANGELOG.md
admin/src/DataGen.php
+14
-0
14 additions, 0 deletions
admin/src/DataGen.php
module/Application/src/Application/Cache/CacheService.php
+6
-3
6 additions, 3 deletions
module/Application/src/Application/Cache/CacheService.php
with
27 additions
and
3 deletions
CHANGELOG.md
+
7
−
0
View file @
d5515a75
...
...
@@ -3,10 +3,17 @@
## Correction de bugs
*
L'interface d'administration des motifs de modification de service est de nouveau pleinement fonctionelle.
*
La suppression d'un élément pédagogique de l'ODF complémentaire refonctionne.
*
Correction d'un bug dans le cache : si un fichier n'était pas déjà en cache il y avait plantage.
## Nouveautés
*
Formule de calcul de Lyon2
*
L'administrateur se voit attibuer systématiquement l'accès à toutes les nouvelles fonctionnalités
## Notes de mise à jour
Les versions 7.3 ou 7.4 de PHP sont maintenant nécessaires.
# OSE 10-zf2 et 10-zf3
...
...
This diff is collapsed.
Click to expand it.
admin/src/DataGen.php
+
14
−
0
View file @
d5515a75
...
...
@@ -377,6 +377,20 @@ class DataGen
$this
->
syncTable
(
$tbl
,
$params
);
}
}
/* L'administrateur doit avoir tous les droits obligatoirement! */
$this
->
oseAdmin
->
getBdd
()
->
exec
(
"
INSERT INTO
role_privilege(privilege_id, role_id)
SELECT
p.id privilege_id, r.id role_id
FROM
privilege p
JOIN role r ON r.code = 'administrateur'
LEFT JOIN role_privilege rp on rp.privilege_id = p.id AND rp.role_id = r.id
WHERE
rp.role_id IS NULL
"
);
}
...
...
This diff is collapsed.
Click to expand it.
module/Application/src/Application/Cache/CacheService.php
+
6
−
3
View file @
d5515a75
...
...
@@ -24,7 +24,10 @@ class CacheService
public
function
remove
(
$class
,
string
$key
):
CacheService
{
unlink
(
$this
->
keyToFile
(
$class
,
$key
));
$file
=
$this
->
keyToFile
(
$class
,
$key
);
if
(
file_exists
(
$file
))
{
unlink
(
$file
);
}
return
$this
;
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment