- what does this question mean? As I can see, without checking it, record gets deleted well."Also delete record(s) from database?"
And how to hide it?
How to hide "Also delete record(s) from database?" message?
9 posts
• Page 1 of 1
How to hide "Also delete record(s) from database?" message?When I try to remove rows from relation, Xataface asks
- what does this question mean? As I can see, without checking it, record gets deleted well. And how to hide it?
Re: How to hide "Also delete record(s) from database?" messaBy default, removing records from a relationship only makes it so the records are no longer related. The original records should still exist.
For example, with a cities table and countries table, I might accidentally create a relationship by adding London to France. To correct it, I would remove the relationship, but I would still want London to exist. However, if this were a city that needed to be deleted completely, then I would want to also select the option to delete the record from the database. If you don't want this message to appear, one method I can think of would be to revoke the delete permission. I'm sure there are other ways to do it if that doesn't meet your needs.
Re: How to hide "Also delete record(s) from database?" messa
How to do that? I've added the following to the table class, but this message still appears. I have user, country, and user_country tables in this relation.
Re: How to hide "Also delete record(s) from database?" messaThanks, but this page contains permission fine-tuning only for relation itself.
It seems, that setting permission on the table, which is a relation participant, should really revoke delete permission from it, but somehow that message still appears for me despite providing tables_country::getPermissions() method.
Re: How to hide "Also delete record(s) from database?" messaPerhaps the "delete related record" permission is granted somewhere in your application:
Since this permission is not normally included by default, maybe you have ALL() permissions defined somewhere. Incidentally, I do not normally see this message in my applications when removing related records, and the original record is not deleted. So it sounds like you have customized something somewhere that is triggering it.
Re: How to hide "Also delete record(s) from database?" messaCan I show you my config by email? I don't see any permissions override since I don't use permission system at all.
I have only a call
But that's another table. And permission is READ_ONLY, not ALL.
Re: How to hide "Also delete record(s) from database?" messaSure, I can look at it for you. I will send you a PM with my contact info.
BTW, I need to correct my earlier statement. I do also see this message when logged in as an admin user. According to the code in RemoveRelatedRecordForm.php, it checks for two permissions:
So, if you revoke delete permission on the parent record/table by setting READ ONLY (as it seems you have), that should suppress this option. I could do some testing in my application to verify this.
Re: How to hide "Also delete record(s) from database?" messaI've sent you my project. And yes, I login as admin user it seems because... I don't login at all Xataface seem to set admin user priviledges by default, if application doesn't use permission system.
Thanks in advance.
9 posts
• Page 1 of 1
Who is onlineUsers browsing this forum: No registered users and 3 guests |