WPIntell

Source evidence

Needs access controls

DCO Comment Attachment · review · 2020-02-14T17:34:00+00:00

praisesentiment
mediumseverity
0.61relevance
4replies
Evidence linked to opportunitycommercial context

Proof Health

Open evidence

Commercial opportunities need traceable source links before they are treated as build-worthy.

5 / 27 rows with source links

18.5% of this page's analysis has direct source links.

0 build-decision rows missing links

0 rows here require auditable proof before promotion.

22 rows with no attached evidence

0 rows have source counts but still need direct links.

Conversation

review · 4 stars
Synetech unresolved
This is good, but it definitely needs access controls, such as limiting the function to logged in users (not allowing anonymous users to post attachments), otherwise it’s just too risky too use. Hello @synetech , Thank you for the idea. I added it to the list of future enhancements. At the moment, you can restrict uploading attachments for anonymous users using this snippet: if( ! is_user_logged_in() ) { add_filter( 'dco_ca_disable_attachment_field', '__return_true'); } Agree with Synetech: risky to let anyone post any attachment. As I am not php-skilled: where (file, location) do I add the snippet given ? ( lol to me the snippet reads as disabling logged-in users from adding attachments) This reply was modified 6 years, 2 months ago by idasilver . Hello @idasilver , For support requests, please create a new topic in the support section . where (file, location) do I add the snippet given ? You can add this snippet into functions.php file of your active theme or add it in your custom plugin or use special plugins, such as, Code Snippets . The feature for restrict uploading attachments only to logged users avaliable at version 1.3.0.

Comments

4 shown
Denis Yanchevskiy 2020-02-16T00:28:00+00:00

Hello @synetech , Thank you for the idea. I added it to the list of future enhancements. At the moment, you can restrict uploading attachments for anonymous users using this snippet: if( ! is_user_logged_in() ) { add_filter( 'dco_ca_disable_attachment_field', '__return_true'); }

idasilver 2020-03-25T22:52:00+00:00

Agree with Synetech: risky to let anyone post any attachment. As I am not php-skilled: where (file, location) do I add the snippet given ? ( lol to me the snippet reads as disabling logged-in users from adding attachments) This reply was modified 6 years, 2 months ago by idasilver .

Denis Yanchevskiy 2020-04-15T11:25:00+00:00

Hello @idasilver , For support requests, please create a new topic in the support section . where (file, location) do I add the snippet given ? You can add this snippet into functions.php file of your active theme or add it in your custom plugin or use special plugins, such as, Code Snippets .

Denis Yanchevskiy 2020-05-13T16:52:00+00:00

The feature for restrict uploading attachments only to logged users avaliable at version 1.3.0.