Skip to content
Next
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
Minds Mobile
Project
Project
Details
Activity
Releases
Cycle Analytics
Insights
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
202
Issues
202
List
Boards
Labels
Service Desk
Milestones
Merge Requests
18
Merge Requests
18
Security & Compliance
Security & Compliance
Dependency List
Packages
Packages
List
Container Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Minds
Minds Mobile
Commits
e4efb208
Commit
e4efb208
authored
23 minutes ago
by
Martin Santangelo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(feat) async check view permission in group and blog screens
parent
27168e50
feat/permissions-implementation-model-activitysheet-channels
1 merge request
!387
WIP: Permissions EPIC
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
0 deletions
+12
-0
src/blogs/BlogsViewScreen.js
src/blogs/BlogsViewScreen.js
+6
-0
src/groups/GroupViewScreen.js
src/groups/GroupViewScreen.js
+6
-0
No files found.
src/blogs/BlogsViewScreen.js
View file @
e4efb208
...
...
@@ -252,6 +252,12 @@ export default class BlogsViewScreen extends Component {
const
desc
=
this
.
props
.
blogsView
.
blog
.
description
;
}
// check async update of permissions
if
(
!
this
.
props
.
blogsView
.
blog
.
can
(
FLAG_VIEW
,
true
))
{
this
.
props
.
navigation
.
goBack
();
return
null
;
}
return
(
<
View
style
=
{[
CS
.
flexContainer
,
CS
.
backgroundWhite
]}
>
{
...
...
This diff is collapsed.
Click to expand it.
src/groups/GroupViewScreen.js
View file @
e4efb208
...
...
@@ -336,6 +336,12 @@ export default class GroupViewScreen extends Component {
return
<
CenteredLoading
/>
}
// check async update of permissions
if
(
!
group
.
can
(
FLAG_VIEW
,
true
))
{
this
.
props
.
navigation
.
goBack
();
return
null
;
}
const
showPosterFab
=
this
.
props
.
groupView
.
tab
===
'
feed
'
&&
group
.
can
(
FLAG_CREATE_POST
);
const
memberActionSheet
=
this
.
state
.
memberActions
?
...
...
This diff is collapsed.
Click to expand it.
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