parse-community / parse-php-sdk

The PHP SDK for Parse Platform
https://parseplatform.org/
Other
812 stars 346 forks source link

Reading session data #484

Closed hamzabinamin closed 1 year ago

hamzabinamin commented 1 year ago

New Feature / Enhancement Checklist

Current Limitation

I am trying to read session details for particular users using the admin role and user, however even after adding the ACL to read session rows from an authenticated user, I get no results unless I try to fetch the session for the logged in user.

Feature / Enhancement Description

I understand this is a security feature and reading session data for other users can be dangerous but my use case requires to limit the login of a group of users based on how many people are logged in from that group and I can only determine that using their session information.

Any help would be appreciated.

@lacker @hramos @noughts @hipsterjazzbo Could you guys suggest what can be done?

parse-github-assistant[bot] commented 1 year ago

Thanks for opening this issue!

mtrezza commented 1 year ago

You should be able to do this with Cloud Code on the server side using the masterkey.

I'm closing this as it does not seem to be a Parse PHP SDK issue.