Skip to content

Commit c4452c6

Browse files
committed
Set access permission on search view
1 parent 25db1b8 commit c4452c6

1 file changed

Lines changed: 10 additions & 2 deletions

File tree

config/sync/views.view.os2loop_search_db.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ dependencies:
66
- search_api.index.os2loop_search_db_index
77
module:
88
- search_api
9+
- user
910
- views_autosubmit
1011
id: os2loop_search_db
1112
label: 'os2loop search db'
@@ -115,8 +116,9 @@ display:
115116
sort_asc_label: Asc
116117
sort_desc_label: Desc
117118
access:
118-
type: none
119-
options: { }
119+
type: perm
120+
options:
121+
perm: 'access content'
120122
cache:
121123
type: search_api_none
122124
options: { }
@@ -272,8 +274,10 @@ display:
272274
- 'url.query_args:sort_by'
273275
- 'url.query_args:sort_order'
274276
- 'user.node_grants:view'
277+
- user.permissions
275278
tags:
276279
- 'config:search_api.index.os2loop_search_db_index'
280+
- 'search_api_list:os2loop_search_db_index'
277281
page_search:
278282
id: page_search
279283
display_title: Page
@@ -311,8 +315,10 @@ display:
311315
- 'url.query_args:sort_by'
312316
- 'url.query_args:sort_order'
313317
- 'user.node_grants:view'
318+
- user.permissions
314319
tags:
315320
- 'config:search_api.index.os2loop_search_db_index'
321+
- 'search_api_list:os2loop_search_db_index'
316322
page_search_form:
317323
id: page_search_form
318324
display_title: 'Page (simple form)'
@@ -338,5 +344,7 @@ display:
338344
- url
339345
- url.query_args
340346
- 'user.node_grants:view'
347+
- user.permissions
341348
tags:
342349
- 'config:search_api.index.os2loop_search_db_index'
350+
- 'search_api_list:os2loop_search_db_index'

0 commit comments

Comments
 (0)