{"result":{"depiction_url":null,"edges":{"in_module":{"objects":[{"created":"2020-05-30T05:47:51Z","object_id":{"id":1752,"is_a":["text","documentation","reference","module"],"name":"doc_module_mod_acl_user_groups","title":"mod_acl_user_groups","uri":"https:\/\/zotonic.com\/id\/1752"},"seq":1000000}],"predicate":{"id":333,"is_a":["meta","predicate"],"name":"in_module","title":{"_type":"trans","tr":{"en":"In module"}},"uri":"https:\/\/zotonic.com\/id\/in_module"}},"subject":{"objects":[{"created":"2026-09-09T13:48:10Z","object_id":{"id":2555,"is_a":["categorization","keyword","keyword_information_type"],"name":"zotonic_topic_reference","title":"Reference","uri":"https:\/\/zotonic.com\/id\/2555"},"seq":1},{"created":"2026-09-09T13:48:10Z","object_id":{"id":2562,"is_a":["categorization","keyword","keyword_audience"],"name":"zotonic_topic_site_administrator","title":"Site administrator","uri":"https:\/\/zotonic.com\/id\/2562"},"seq":2},{"created":"2026-09-09T13:48:10Z","object_id":{"id":2592,"is_a":["categorization","keyword","keyword_domain"],"name":"zotonic_topic_authorization_and_access_control","title":"Authorization and access control","uri":"https:\/\/zotonic.com\/id\/2592"},"seq":3},{"created":"2026-09-09T13:48:10Z","object_id":{"id":2625,"is_a":["categorization","keyword","keyword_architecture"],"name":"zotonic_topic_model","title":"Model","uri":"https:\/\/zotonic.com\/id\/2625"},"seq":4},{"created":"2026-09-09T13:48:10Z","object_id":{"id":2653,"is_a":["categorization","keyword","keyword_task"],"name":"zotonic_topic_authorize","title":"Authorize","uri":"https:\/\/zotonic.com\/id\/2653"},"seq":5}],"predicate":{"id":308,"is_a":["meta","predicate"],"name":"subject","title":{"_type":"trans","tr":{"en":"Keyword"}},"uri":"http:\/\/purl.org\/dc\/elements\/1.1\/subject"}}},"id":2024,"is_a":["text","documentation","reference","model"],"links":[{"rel":"self","target":"https:\/\/zotonic.com\/.zotonic\/websub\/topic\/2024"},{"rel":"hub","target":"https:\/\/zotonic.com\/.zotonic\/websub"}],"medium":null,"medium_url":null,"name":"doc_model_model_acl_rule","page_url":{"en":"https:\/\/zotonic.com\/docs\/2024\/acl_rule","x-default":"https:\/\/zotonic.com\/docs\/2024\/acl_rule"},"preview_url":null,"resource":{"version":3327,"pivot_location_lat":null,"title":"acl_rule","is_authoritative":true,"body":"<p>Model for ACL rule inspection and helper checks in mod_acl_user_groups, including insert\/move checks, upload limits, mime checks, and ACL state lookups.<\/p>\n<h2>Available Model API Paths<\/h2>\n<table class=\"table\"><thead><tr><th>Method<\/th><th>Path pattern<\/th><th>Description<\/th><\/tr><\/thead><tbody><tr><td><code>get<\/code><\/td><td><code>\/is_valid_code\/+code\/...<\/code><\/td><td>Return whether valid code (<code>is_valid_code<\/code>).<\/td><\/tr><tr><td><code>get<\/code><\/td><td><code>\/generate_code\/...<\/code><\/td><td>Return a newly generated ACL rule invitation\/access code.<\/td><\/tr><tr><td><code>get<\/code><\/td><td><code>\/default_upload_size\/...<\/code><\/td><td>Return default maximum upload size enforced by ACL user-group checks.<\/td><\/tr><tr><td><code>get<\/code><\/td><td><code>\/default_mime_allowed\/...<\/code><\/td><td>Return default MIME allowlist used by ACL upload checks.<\/td><\/tr><tr><td><code>get<\/code><\/td><td><code>\/upload_size\/...<\/code><\/td><td>Return effective maximum upload size for the current user context.<\/td><\/tr><tr><td><code>get<\/code><\/td><td><code>\/author_is_owner\/...<\/code><\/td><td>Return config flag <code>mod_acl_user_groups.author_is_owner<\/code>.<\/td><\/tr><tr><td><code>get<\/code><\/td><td><code>\/can_insert\/none\/+categoryid\/...<\/code><\/td><td>Return whether insertion into category <code>+categoryid<\/code> is allowed without explicit content-group context.<\/td><\/tr><tr><td><code>get<\/code><\/td><td><code>\/can_insert\/acl_collaboration_group\/+categoryid\/...<\/code><\/td><td>Return whether insertion into category <code>+categoryid<\/code> is allowed within collaboration-group context.<\/td><\/tr><tr><td><code>get<\/code><\/td><td><code>\/can_insert\/+contentgroupid\/+categoryid\/...<\/code><\/td><td>Return <code>can_insert<\/code> result for <code>+contentgroupid<\/code> and <code>+categoryid<\/code> using <code>acl_user_groups_checks:can_insert_category<\/code>.<\/td><\/tr><tr><td><code>get<\/code><\/td><td><code>\/can_move\/+contentgroupid\/+rscid\/...<\/code><\/td><td>Return <code>can_move<\/code> result for <code>+contentgroupid<\/code> and <code>+rscid<\/code> using <code>acl_user_groups_checks:can_move<\/code>.<\/td><\/tr><tr><td><code>get<\/code><\/td><td><code>\/acl_user_groups_state\/...<\/code><\/td><td>Return identity data. Uses <code>acl_user_groups_checks:session_state<\/code>.<\/td><\/tr><tr><td><code>get<\/code><\/td><td><code>\/+t\/actions\/...<\/code><\/td><td>Return available ACL actions for ACL kind <code>+t<\/code>.<\/td><\/tr><tr><td><code>get<\/code><\/td><td><code>\/+t\/+s\/+all_opts\/...<\/code><\/td><td>Return ACL rules for type <code>+t<\/code> and state <code>+s<\/code>, including option set <code>+all_opts<\/code> (<code>all_rules<\/code>).<\/td><\/tr><tr><td><code>get<\/code><\/td><td><code>\/+t\/+s\/...<\/code><\/td><td>Resolve <code>+t<\/code> and <code>+s<\/code> and return the matching value via <code>all_rules<\/code>.<\/td><\/tr><tr><td><code>get<\/code><\/td><td><code>\/+t\/undefined\/...<\/code><\/td><td>Return values for <code>\/undefined<\/code> using +t.<\/td><\/tr><tr><td><code>get<\/code><\/td><td><code>\/+t\/+id\/...<\/code><\/td><td>Resolve <code>+t<\/code> and <code>+id<\/code> and return the matching value via <code>z_convert:to_integer<\/code>.<\/td><\/tr><\/tbody><\/table>\n<p><code>\/+name<\/code> marks a variable path segment. A trailing <code>\/...<\/code> means extra path segments are accepted for further lookups.<\/p>","slug":"acl_rule","is_protected":false,"visible_for":0,"tz":"UTC","language":["en"],"doc_source_hash":"dec2277f3032c19250214ca8b63ebed9eeb862cb057b1993ac72304c4b7f9b0c","is_featured":false,"content_group_id":{"id":2551,"is_a":["meta","content_group"],"name":"content_group_imported_docs","title":"Imported documentation","uri":"https:\/\/zotonic.com\/id\/content_group_imported_docs"},"category_id":{"id":322,"is_a":["meta","category"],"name":"model","title":"Models","uri":"https:\/\/test.zotonic.com\/id\/322"},"doc_source_path":"apps\/zotonic_mod_acl_user_groups\/src\/models\/m_acl_rule.erl","publication_start":"2023-01-30T19:24:01Z","github_url":"https:\/\/github.com\/zotonic\/zotonic\/blob\/master\/apps\/zotonic_mod_acl_user_groups\/src\/models\/m_acl_rule.erl","pivot_location_lng":null,"doc_source_kind":"model","name":"doc_model_model_acl_rule","is_unfindable":false,"is_published":true,"pivot_geocode":null,"created":"2020-05-30T05:47:51Z","uri":null,"doc_status":"current","is_dependent":false,"erlang_app":"zotonic_mod_acl_user_groups","publication_end":"9999-06-01T00:00:00Z","modifier_id":{"id":1,"is_a":["person"],"name":"administrator","title":"Site Administrator","uri":"https:\/\/zotonic.com\/id\/1"},"privacy":0,"doc_source_commit":"66cb145eae7002b184e7d8c4c7bba5e53e8248e5\n","erlang_module":"m_acl_rule","creator_id":{"id":336,"is_a":["person","robot"],"name":"gitbot","title":"Git","uri":"https:\/\/zotonic.com\/id\/336"},"modified":"2026-10-02T12:40:35Z","title_slug":"acl_rule"},"uri":"https:\/\/zotonic.com\/id\/2024","uri_template":"https:\/\/zotonic.com\/id\/:id","websub":{"hub":"https:\/\/zotonic.com\/.zotonic\/websub","topic":"https:\/\/zotonic.com\/.zotonic\/websub\/topic\/2024"}},"status":"ok"}