Commit 019aaa4
committed
rgw: donot check for NotPrincipal in IsPublicStatement
As NotPrincipal cannot be used with Effect Allow there is no need to
check for that.
Also before this change, policies without `NotPrincipal` were identified
as a public as std::none_of() returns true on empty flats and the check
was not considering the fact that the policy might have pricipals. but
due to the missing concept from AWS about how to deal with Principal and
NotPrincipal on Allow Effect we can just remove it.
Signed-off-by: Seena Fallah <[email protected]>1 parent fbb7c3d commit 019aaa4
1 file changed
+3
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1893 | 1893 | | |
1894 | 1894 | | |
1895 | 1895 | | |
1896 | | - | |
1897 | | - | |
1898 | | - | |
| 1896 | + | |
| 1897 | + | |
| 1898 | + | |
1899 | 1899 | | |
1900 | | - | |
1901 | | - | |
1902 | | - | |
1903 | | - | |
1904 | 1900 | | |
1905 | 1901 | | |
1906 | 1902 | | |
| |||
0 commit comments