stefangrund/PersonalAPI

Private resources

Opened this issue · 2 comments

It should be possible to mark resources as private. Private data shouldn't be readable with the public token.

I've added the required database columns to mark resources as private and to de-/activate modules. It's not implemented in the UI right now (!) and will only be added in new PAPI installs (!!), but here's the SQL query to add the two new columns to your existing PAPI:

ALTER TABLE papi_modules
    ADD active BOOL NOT NULL DEFAULT '0',
    ADD private BOOL NOT NULL DEFAULT '0'

Thanks for providing the SQL statement :).