<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>Forum Pasja Informatyki - Najnowsze z tagiem rules</title>
<link>https://forum.pasja-informatyki.pl/tag/rules</link>
<description>Powered by Question2Answer</description>
<item>
<title>Polecam! Artykuł .htaccess Cheat Sheet (web server rules and config options)</title>
<link>https://forum.pasja-informatyki.pl/592001/polecam-artykul-htaccess-cheat-sheet-web-server-rules-and-config-options</link>
<description>

&lt;p&gt;Jak w tytule posta.&lt;/p&gt;



&lt;blockquote&gt;


&lt;p&gt;&lt;a href=&quot;https://htaccesscheatsheet.com/&quot; rel=&quot;nofollow&quot;&gt;.htaccess Cheat Sheet&lt;/a&gt;&lt;/p&gt;



&lt;p&gt;&amp;nbsp;&lt;/p&gt;



&lt;p&gt;All the important Apache .htaccess web server rules and config options&lt;/p&gt;



&lt;p&gt;&amp;nbsp;&lt;/p&gt;



&lt;p&gt;Welcome to our fast loading one page .htaccess cheat sheet with all major .htaccess rules listed.&lt;/p&gt;



&lt;p&gt;&amp;nbsp;&lt;/p&gt;



&lt;p&gt;We have no ads, no javascript. Just plain HTML (and a .css file), so it should load super fast. Coming here and a quick cmd+f/ctrl+f should be faster than finding the answer on stackexchange :)&lt;/p&gt;
&lt;/blockquote&gt;



&lt;p&gt;&lt;img alt=&quot;&quot; src=&quot;https://forum.pasja-informatyki.pl/?qa=blob&amp;amp;qa_blobid=5189234773277621655&quot; style=&quot;height:303px; width:500px&quot;&gt;&lt;/p&gt;



&lt;hr&gt;


&lt;p&gt;&lt;img alt=&quot;&quot; src=&quot;https://forum.pasja-informatyki.pl/?qa=blob&amp;amp;qa_blobid=16182370660916196507&quot; style=&quot;height:216px; width:500px&quot;&gt;&lt;/p&gt;



&lt;hr&gt;


&lt;p&gt;&lt;img alt=&quot;&quot; src=&quot;https://forum.pasja-informatyki.pl/?qa=blob&amp;amp;qa_blobid=15683881922699020460&quot; style=&quot;height:306px; width:500px&quot;&gt;&lt;/p&gt;</description>
<category>Offtop</category>
<guid isPermaLink="true">https://forum.pasja-informatyki.pl/592001/polecam-artykul-htaccess-cheat-sheet-web-server-rules-and-config-options</guid>
<pubDate>Sat, 09 Mar 2024 12:36:00 +0000</pubDate>
</item>
<item>
<title>Firestore - problem z dostępem tylko dla właściciela treści</title>
<link>https://forum.pasja-informatyki.pl/526946/firestore-problem-z-dostepem-tylko-dla-wlasciciela-tresci</link>
<description>

&lt;p&gt;Tworzę aplikację internetową w React i auth, firestore z firebase, która polega&amp;nbsp;na&amp;nbsp;robienieu&amp;nbsp;notatek itp.&lt;/p&gt;



&lt;p&gt;Chciałbym zrobić tak że&amp;nbsp;użytkownicy widzą&amp;nbsp;tylko swoje notatki&amp;nbsp;więc skorzystałem z reguł z dokumentacji google&lt;/p&gt;



&lt;p&gt;&lt;a href=&quot;https://firebase.google.com/docs/rules/basics?authuser=0#cloud-firestore_2&quot; rel=&quot;nofollow&quot;&gt;Podstawowe zasady bezpieczeństwa &amp;nbsp;|&amp;nbsp; Firebase (google.com)&lt;/a&gt;&lt;/p&gt;



&lt;p&gt;&amp;nbsp;&lt;/p&gt;



&lt;pre class=&quot;brush:plain;&quot;&gt;
service cloud.firestore {
  match /databases/{database}/documents {
  // Allow only authenticated content owners access
    match /notes/{userId}/{documents=**} {
      allow read, write: if request.auth != null &amp;amp;&amp;amp; request.auth.uid == userId                     
    }                                                                                                   
  }                                                                                                    
}&lt;/pre&gt;



&lt;p&gt;Ale kiedy próbuję utworzyć dokument, pojawia się ten błąd w konsoli:&lt;/p&gt;



&lt;pre class=&quot;brush:plain;&quot;&gt;
Uncaught (in promise) FirebaseError: Missing or insufficient permissions.
at new e (http://localhost:3000/static/js/0.chunk.js:13222:19)
at http://localhost:3000/static/js/0.chunk.js:25490:18
at http://localhost:3000/static/js/0.chunk.js:25491:10
at e.onMessage (http://localhost:3000/static/js/0.chunk.js:25512:6)
at http://localhost:3000/static/js/0.chunk.js:25403:18
at http://localhost:3000/static/js/0.chunk.js:25441:29
at http://localhost:3000/static/js/0.chunk.js:31505:25&lt;/pre&gt;



&lt;p&gt;Kiedy używam domyślnych reguł, wszystko działa, ale dokumenty są widoczne dla wszystkich użytkowników.&lt;/p&gt;



&lt;p&gt;Byłbym wdzięczny za pomoc :)&lt;/p&gt;</description>
<category>SQL, bazy danych</category>
<guid isPermaLink="true">https://forum.pasja-informatyki.pl/526946/firestore-problem-z-dostepem-tylko-dla-wlasciciela-tresci</guid>
<pubDate>Mon, 25 Jan 2021 20:16:35 +0000</pubDate>
</item>
</channel>
</rss>