Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Page access role check, app card version type label #677

Merged
merged 1 commit into from
Jan 16, 2019

Conversation

whDongRui
Copy link
Contributor

  • fix: My apps show error when version-types is null

* fix: My apps show error when version-types is null
@whDongRui whDongRui requested review from liiil825 and sunnywx January 16, 2019 03:00
@codecov
Copy link

codecov bot commented Jan 16, 2019

Codecov Report

Merging #677 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #677   +/-   ##
=======================================
  Coverage   24.08%   24.08%           
=======================================
  Files         109      109           
  Lines        1756     1756           
  Branches      402      402           
=======================================
  Hits          423      423           
  Misses       1262     1262           
  Partials       71       71

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 13428e8...2be3cef. Read the comment docs.

@sunnywx sunnywx changed the title fix: Page access control to routes fix: App card version type label Jan 16, 2019
@@ -46,8 +46,7 @@ const WrapRoute = ({ component: Comp, ...rest }) => {

if (!_.isEmpty(acl)) {
acl = [].concat(acl);

if (!_.some(acl, role => user[`is${_.capitalize(role)}`])) {
if (!_.some(acl, role => user[`is${role}`])) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

如果之前的功能没问题,就尽量不去改。 如果非要改,那也只是refactor,不是 fix

@sunnywx sunnywx changed the title fix: App card version type label fix: Page access role check, app card version type label Jan 16, 2019
@sunnywx sunnywx merged commit 8aacb5d into openpitrix:master Jan 16, 2019
@whDongRui whDongRui deleted the fix/route-check branch January 17, 2019 06:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants