Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Register
Sign in
Toggle navigation
Menu
UPSMF
sunbird-lms-service
Commits
386b1278
Unverified
Commit
386b1278
authored
3 years ago
by
Reshmi V Nair
Committed by
GitHub
3 years ago
Browse files
Options
Download
Patches
Plain Diff
SB-27815 Terms & policies page throwing up technical error (#997)
parent
3a4910b3
release-4.4.1
release-4.4.0
release-4.4.1_RC1
release-4.4.0_RC15
release-4.4.0_RC14
release-4.4.0_RC13
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
core/platform-common/src/main/java/org/sunbird/keys/JsonKey.java
+1
-0
...atform-common/src/main/java/org/sunbird/keys/JsonKey.java
service/src/main/java/org/sunbird/service/user/UserTncService.java
+3
-2
...rc/main/java/org/sunbird/service/user/UserTncService.java
with
4 additions
and
2 deletions
+4
-2
core/platform-common/src/main/java/org/sunbird/keys/JsonKey.java
+
1
−
0
View file @
386b1278
...
...
@@ -555,6 +555,7 @@ public final class JsonKey {
public
static
final
String
ORG_ADMIN
=
"ORG_ADMIN"
;
public
static
final
String
ORG_ADMIN_TNC
=
"orgAdminTnc"
;
public
static
final
String
REPORT_VIEWER
=
"REPORT_VIEWER"
;
public
static
final
String
REPORT_ADMIN
=
"REPORT_ADMIN"
;
public
static
final
String
REPORT_VIEWER_TNC
=
"reportViewerTnc"
;
public
static
final
String
REQUEST_ID
=
"requestid"
;
public
static
final
String
LOCATION_TYPE_SCHOOL
=
"school"
;
...
...
This diff is collapsed.
Click to expand it.
service/src/main/java/org/sunbird/service/user/UserTncService.java
+
3
−
2
View file @
386b1278
...
...
@@ -122,8 +122,9 @@ public class UserTncService {
// check if it is org admin TnC and user is not an admin of the organisation
// OR check if it is report viewer tnc and user not having the report viewer role
if
((
JsonKey
.
ORG_ADMIN_TNC
.
equals
(
tncType
)
&&
!
roleCheck
(
user
,
JsonKey
.
ORG_ADMIN
,
context
))
||
(
JsonKey
.
REPORT_VIEWER_TNC
.
equals
(
tncType
)
&&
!
roleCheck
(
user
,
JsonKey
.
REPORT_VIEWER
,
context
)))
{
||
(
JsonKey
.
REPORT_VIEWER_TNC
.
equals
(
tncType
)
&&
(!
roleCheck
(
user
,
JsonKey
.
REPORT_VIEWER
,
context
)
||
!
roleCheck
(
user
,
JsonKey
.
REPORT_ADMIN
,
context
))))
{
ProjectCommonException
.
throwClientErrorException
(
ResponseCode
.
invalidParameterValue
,
MessageFormat
.
format
(
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
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
Menu
Explore
Projects
Groups
Topics
Snippets