SolarArbiter / solarforecastarbiter-api

HTTP API and database schema for the Solar Forecast Arbiter
https://api.solarforecastarbiter.org
MIT License
10 stars 6 forks source link

Users moved to organization are unreadable by admin. #162

Closed lboeman closed 5 years ago

lboeman commented 5 years ago

Since the trigger to update "applies_to_all" permissions fires when the object is inserted into the table. Moving a user from one organization to another doesn't add them to the 'read all users' permissions of the new organization.

lboeman commented 5 years ago

@alorenzo175 I was thinking this should be handled by an trigger on updates to the user table. Does that sound reasonable to you?

alorenzo175 commented 5 years ago

yes

lboeman commented 5 years ago

closed by #163