Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
PortalMEC-React
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
PortalMEC
PortalMEC-React
Commits
d0669adf
Commit
d0669adf
authored
4 years ago
by
lfr20
Browse files
Options
Downloads
Patches
Plain Diff
Added a logic to add one more tab, the admin area, to the authorized user
parent
3b20a493
No related branches found
No related tags found
4 merge requests
!57
Merge of develop into master
,
!56
Fixed buttons reportar, seguir, compartilhar, guardar and entrar (in comments...
,
!40
merge admin into develop
,
!37
Merge sistema_admin into Update_Admin_System
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/Components/MenuBar.js
+1
-1
1 addition, 1 deletion
src/Components/MenuBar.js
with
1 addition
and
1 deletion
src/Components/MenuBar.js
+
1
−
1
View file @
d0669adf
...
...
@@ -124,7 +124,7 @@ export default function MenuBar(props) {
//If the user has the permisson of editor or admin, it will display to him/her
//one more tab in the user area, the admin tab
if
(
state
.
userIsLoggedIn
&&
(
obj
.
id
===
3
||
obj
.
id
===
7
)
)
{
if
(
obj
.
id
===
3
||
obj
.
id
===
7
)
{
minhaArea
.
push
(
{
name
:
"
Perfil e Atividades
"
,
href
:
"
/perfil
"
,
value
:
'
0
'
},
{
name
:
"
Status e Conquistas
"
,
href
:
"
/perfil
"
,
value
:
'
1
'
},
...
...
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