Skip to content

🐛 [BUG] - Can't unshare view #2217

@zsolnai

Description

@zsolnai

Description

The view still available after unshare.

When i disable sharing on view, the sharing disabled in SQLite database:

sqlite> .schema undb_share
CREATE TABLE `undb_share` (
	`id` text PRIMARY KEY NOT NULL,
	`target_type` text NOT NULL,
	`target_id` text NOT NULL,
	`enabled` integer NOT NULL,
	`space_id` text NOT NULL,
	FOREIGN KEY (`space_id`) REFERENCES `undb_space`(`id`) ON UPDATE no action ON DELETE no action
);

sqlite> SELECT * FROM undb_share;
lcoasx2irwe2h35|view|ni24egss3|0|nedp8t3m

But if i visit <site>/s/v/lcoasx2irwe2h35, the data still available.

Reproduction URL

No response

Reproduction steps

1. Go to a view
2. Click on share & copy link
3. Then click unshare
4. The view still available after unshare.

Screenshots

Logs

Browsers

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions