nextcloud / user_sql

🔒 App for authenticating Nextcloud users using SQL
GNU Affero General Public License v3.0
66 stars 33 forks source link

Automatically accepting shares not working #147

Open 13hannes11 opened 4 years ago

13hannes11 commented 4 years ago

If I login as a new user (who is stored in the sql backend), shared folders that are shared to my groups are not automatically accepted.

It only occurs for users that stem from the sql backend not for ordinary nextcloud users.

leuedaniel commented 3 years ago

I fix that with a triger on my database:

CREATE DEFINER=***@localhost TRIGGER oc_share_before_insert BEFORE INSERT ON oc_share FOR EACH ROW BEGIN IF NEW.share_type = 1 THEN SET NEW.accepted = 1; END IF; END