Django CMS 4.1.x Documentationgranular and multi-layered. Permission modes Permissions operate in two different modes, depending on the CMS_PERMISSION setting. Simple permissions mode (CMS_PERMISSION = False): only the standard Django Django Users and Groups permissions will apply. This is the default. Page permissions mode (CMS_PERMISSION = True): as well as standard Django permissions, django CMS provides row-level permissions on pages users. Permissions in Page permissions mode In Page permissions mode, you also need to give users permission to the right pages and sub-sites. Global and per-page permissions This can be done in two ways0 码力 | 518 页 | 1.66 MB | 6 月前3
django cms 4.1.x Documentationgranular and multi-layered. Permission modes Permissions operate in two different modes, depending on the CMS_PERMISSION setting. • Simple permissions mode (CMS_PERMISSION = False): only the standard Django Users and Groups permis- sions will apply. This is the default. • Page permissions mode (CMS_PERMISSION = True): as well as standard Django permissions, django CMS provides row-level permissions on pages users. Permissions in Page permissions mode In Page permissions mode, you also need to give users permission to the right pages and sub-sites. 48 Chapter 5. Software version requirements and release notes0 码力 | 357 页 | 1.99 MB | 1 年前3
django cms 4.1.1 Documentation
granular and multi-layered. Permission modes Permissions operate in two different modes, depending on the CMS_PERMISSION setting. • Simple permissions mode (CMS_PERMISSION = False): only the standard Django Users and Groups permis- sions will apply. This is the default. • Page permissions mode (CMS_PERMISSION = True): as well as standard Django permissions, django CMS provides row-level permissions on pages users. Permissions in Page permissions mode In Page permissions mode, you also need to give users permission to the right pages and sub-sites. 48 Chapter 5. Software version requirements and release notes0 码力 | 361 页 | 2.00 MB | 1 年前3
django cms 3.4.x Documentation" % pk) if not placeholder.has_change_permission(request): return HttpResponseBadRequest("You do not have enough permission to alias this placeholder.") clipboard = sampleapp.urls"] permissions = False If you still want some of your views to use the CMS’s permission checks you can enable them via a decorator, cms.utils.decorators.cms_perms Here is a simple example: decorators import cms_perms @cms_perms def my_view(request, **kw): ... If you have your own permission checks in your application, then use exclude_permissions property of the apphook: class SampleApp(CMSApp):0 码力 | 395 页 | 1.64 MB | 1 年前3
django cms 3.5.x Documentation" % pk) if not placeholder.has_change_permission(request): return HttpResponseBadRequest("You do not have enough permission to alias this placeholder.") clipboard = sampleapp.urls"] permissions = False If you still want some of your views to use the CMS’s permission checks you can enable them via a decorator, cms.utils.decorators.cms_perms Here is a simple example: decorators import cms_perms @cms_perms def my_view(request, **kw): ... If you have your own permission checks in your application, then use exclude_permissions property of the apphook: class SampleApp(CMSApp):0 码力 | 403 页 | 1.69 MB | 1 年前3
django cms 3.6.x Documentationadd or change permission on related Model or instance. • to change: require add or change permission on related Model or instance. • to delete: require add or change or delete permission on related Model usually added through the default Django auth application and its admin interface. Object- level permission can be handled by writing a custom authentication backend as described in django docs For example id %s not found." % ˓→pk) if not placeholder.has_change_permission(request): return HttpResponseBadRequest("You do not have enough permission to ˓→alias this placeholder.") clipboard = request.toolbar0 码力 | 278 页 | 1.63 MB | 1 年前3
Django CMS 3.11.10 Documentationgranular and multi-layered. Permission modes Permissions operate in two different modes, depending on the CMS_PERMISSION setting. Simple permissions mode (CMS_PERMISSION = False): only the standard Django Django Users and Groups permissions will apply. This is the default. Page permissions mode (CMS_PERMISSION = True): as well as standard Django permissions, django CMS provides row-level permissions on pages users. Permissions in Page permissions mode In Page permissions mode, you also need to give users permission to the right pages and sub-sites. Global and per-page permissions This can be done in two ways0 码力 | 493 页 | 1.44 MB | 6 月前0.03
django cms 3.10.x Documentationmixin PlaceholderAdminMixin along with the ModelAdmin. Note: Using this mixin is mandatory for permission check to work properly. Note that the PlaceholderAdminMixin must precede the ModelAdmin in the add or change permission on related Model or instance. • to change: require add or change permission on related Model or instance. • to delete: require add or change or delete permission on related Model usually added through the default Django auth application and its admin interface. Object-level permission can be handled by writing a custom authentication backend as described in django docs For example0 码力 | 296 页 | 1.79 MB | 1 年前3
Django CMS 3.9.x Documentationrequire add or change permission on related Model or instance. to change: require add or change permission on related Model or instance. to delete: require add or change or delete permission on related Model usually added through the default Django auth application and its admin interface. Object-level permission can be handled by writing a custom authentication backend as described in django docs [https://docs if not placeholder.has_change_permission(request): return HttpResponseBadRequest( "You do not have enough permission to alias this placeholder."0 码力 | 417 页 | 1.68 MB | 6 月前3
Django CMS 3.8.x Documentationrequire add or change permission on related Model or instance. to change: require add or change permission on related Model or instance. to delete: require add or change or delete permission on related Model usually added through the default Django auth application and its admin interface. Object-level permission can be handled by writing a custom authentication backend as described in django docs [https://docs if not placeholder.has_change_permission(request): return HttpResponseBadRequest( "You do not have enough permission to alias this placeholder."0 码力 | 413 页 | 1.67 MB | 6 月前3
共 54 条
- 1
- 2
- 3
- 4
- 5
- 6













