Giter VIP home page Giter VIP logo

Comments (2)

alanning avatar alanning commented on July 30, 2024

Hi Alexei,

Thanks for the report. The screenshots are a nice touch. :-)

From what you describe it looks like there is a bug in the example app's
publish and/or subscribe functions. I'll take a look and let you know what
I find.

Cheers,
Adrian

Sent from my iPhone

On Apr 16, 2013, at 5:38 AM, joystick [email protected] wrote:

Hi,

Given an exapmle app
When logged in as [email protected]
And click Manage Users
Then I see only current user in the list:
[image: image]https://f.cloud.github.com/assets/168422/385190/c8daf590-a678-11e2-97b7-1350902b607a.png

Then If I hit reload and navigate to Manage Users I see all four users
listed:
[image: image]https://f.cloud.github.com/assets/168422/385205/1ddcbfa6-a679-11e2-8ea3-58ea479cd4a0.png

Please advise how to get user list fully populated without "rebooting
win95" :)

BR,

Alexei


Reply to this email directly or view it on
GitHubhttps://github.com//issues/8
.

from meteor-roles.

alanning avatar alanning commented on July 30, 2024

OK, I've updated the example app. The problem was that in the publish function, if the current user doesn't have permission, the subscription is stopped. The fix is to put the subscribe call into a Deps.autorun on the client with a dependency on Meteor.user() so that when the user changes (logs in) the subscriptions will re-run and the authorization check will be performed again.

Please pull latest and see if that works for you. If it still doesn't work, please re-open this issue.

from meteor-roles.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.