Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Genesys Backend
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
13
Issues
13
List
Boards
Labels
Service Desk
Milestones
Operations
Operations
Incidents
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Genesys PGR
Genesys Backend
Commits
a901dbec
Commit
a901dbec
authored
Feb 20, 2014
by
Matija Obreza
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
FIX: Institute admins can't change blurp
parent
f1e92b5c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
src/main/java/org/genesys2/server/service/impl/ContentServiceImpl.java
.../org/genesys2/server/service/impl/ContentServiceImpl.java
+1
-1
src/main/java/org/genesys2/server/service/impl/InstituteServiceImpl.java
...rg/genesys2/server/service/impl/InstituteServiceImpl.java
+2
-2
No files found.
src/main/java/org/genesys2/server/service/impl/ContentServiceImpl.java
View file @
a901dbec
...
...
@@ -176,7 +176,7 @@ public class ContentServiceImpl implements ContentService {
*/
@Override
@Transactional
(
readOnly
=
false
)
@PreAuthorize
(
"hasRole('ADMINISTRATOR')"
)
@PreAuthorize
(
"hasRole('ADMINISTRATOR')
or hasPermission(#entity, 'ADMINISTRATION')
"
)
@CacheEvict
(
value
=
"contentcache"
,
allEntries
=
true
)
public
Article
updateArticle
(
EntityId
entity
,
String
slug
,
String
title
,
String
body
,
Locale
locale
)
{
// return
...
...
src/main/java/org/genesys2/server/service/impl/InstituteServiceImpl.java
View file @
a901dbec
...
...
@@ -122,14 +122,14 @@ public class InstituteServiceImpl implements InstituteService {
}
@Override
@PreAuthorize
(
"hasRole('ADMINISTRATOR') or hasPermission(#faoInstitute, '
WRITE
')"
)
@PreAuthorize
(
"hasRole('ADMINISTRATOR') or hasPermission(#faoInstitute, '
ADMINISTRATION
')"
)
@Transactional
(
readOnly
=
false
)
public
void
updateBlurp
(
FaoInstitute
faoInstitute
,
String
blurp
,
Locale
locale
)
{
contentService
.
updateArticle
(
faoInstitute
,
"blurp"
,
null
,
blurp
,
locale
);
}
@Override
@PreAuthorize
(
"hasRole('ADMINISTRATOR') or hasPermission(#faoInstitute, '
WRITE
')"
)
@PreAuthorize
(
"hasRole('ADMINISTRATOR') or hasPermission(#faoInstitute, '
ADMINISTRATION
')"
)
@Transactional
(
readOnly
=
false
)
public
void
updateSettings
(
FaoInstitute
faoInstitute
,
Map
<
String
,
String
>
settings
)
{
List
<
FaoInstituteSetting
>
toSave
=
new
ArrayList
<
FaoInstituteSetting
>();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment