Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Swift, how to set Parse default ACL

I'm trying to set the default ACL in the AppDelegate. According to the documentation it states to use...

PFACL.setDefaultACL(PFACL.ACL(), withAccessForCurrentUser: true)

However when I use this I get an error on the line that reads...

'ACL()' is unavailable: use object construction 'PFACL()'
like image 619
ENG618 Avatar asked Mar 08 '26 15:03

ENG618


1 Answers

As the error message states, you should use

PFACL.setDefaultACL(PFACL(), withAccessForCurrentUser: true)

so the constructor is just PFACL().

like image 171
Dániel Nagy Avatar answered Mar 10 '26 06:03

Dániel Nagy



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!