コード例 #1
0
def updateFilteredDefaults():
    defaultRight().allGet(IUserActionService, filter=filterAuthenticated())
    # Provides access for performing login
    defaultRight().add(
        ref(IAuthenticationService).requestLogin,
        ref(IAuthenticationService).performLogin)
    # Provides read only access to the logged in user
    defaultRight().add(ref(IUserService).getById, filter=filterAuthenticated())
コード例 #2
0
ファイル: actions.py プロジェクト: atifsattar/Superdesk
def registerAclLivedeskUpdate():
    r = rightLivedeskUpdate()
    r.allGet(IBlogSyncService)
    r.add(ref(IBlogSyncService).insert, ref(IBlogSyncService).update, filter=filterAuthenticated())
    r.add(ref(IBlogSyncService).delete)
    r.addActions(menuAction(), subMenuAction(), modulesAction(), modulesEditAction(), modulesBlogEditAction(),
                 dashboardAction(), modulesAddAction(), modulesConfigureAction(), modulesManageCollaboratorsAction(), modulesManageFeedsAction(),
                 modulesBlogPublishAction(), modulesBlogPostPublishAction())
    r.all(IBlogService, IBlogPostService, IBlogCollaboratorService, IBlogThemeService, IBlogTypePostService, IBlogTypeService,
          IPersonService, IPersonIconService, ISourceService, ICollaboratorService)
コード例 #3
0
ファイル: actions.py プロジェクト: Halfnhav4/Superdesk
def registerAclManageOwnPost():
    r = rightManageOwnPost()
    r.addActions(menuAction(), subMenuAction(), modulesAction(), modulesEditAction(), dashboardAction())
    r.allGet(IBlogService, filter=filterCollaboratorBlog())
    r.allGet(ISourceService)
    r.add(ref(IBlogPostService).delete)
    # TODO: add: filter=filterOwnPost(), also the override crates problems, this should have been on IPostService
    r.add(ref(IBlogPostService).insert, ref(IBlogPostService).update, filter=filterCollaboratorBlog())
    r.add(ref(IBlogPostService).publish, ref(IBlogPostService).insertAndPublish, ref(IBlogPostService).unpublish,
          ref(IBlogPostService).reorder, ref(IBlogCollaboratorService).addCollaborator,
          ref(IBlogCollaboratorService).addCollaboratorAsDefault, filter=filterAdminBlog())
    r.add(ref(IBlogPostService).update)  # TODO: add: filter=filterOwnPost()
コード例 #4
0
ファイル: actions.py プロジェクト: Eduardoescamilla/Live-Blog
def registerAclLivedeskView():
    r = rightLivedeskView()
    r.addActions(menuAction(), subMenuAction(), modulesAction(), modulesArchiveAction(), dashboardAction())
    r.allGet(IBlogTypeService, IBlogTypePostService, IPersonService, IPersonIconService)
    r.allGet(IBlogService, IBlogCollaboratorService, IBlogPostService, filter=filterCollaboratorBlog())
    r.allGet(ISourceService)
    r.add(ref(IBlogService).getAll, filter=filterAuthenticated())
    r.allGet(IBlogPostService, filter=filterClosedBlog())
    r.allGet(IPostVerificationService)
    r.allGet(ILanguageService)
    r.allGet(IRoleService)
    r.allGet(IPostService)
    r.allGet(IPostTypeService)
    r.allGet(ISourceTypeService)
    r.allGet(IVerificationStatusService)
    r.allGet(IUserTypeService)
    r.allGet(IBlogMediaTypeService)
    r.allGet(IRightService)
    r.allGet(IRightTypeService)
    r.allGet(IVersionService)
    r.allGet(IMetaDataService)
    r.allGet(IUserService)
    r.allGet(IUserRbacService)
    r.allGet(IGeneralSettingService)
    r.allGet(IBlogSourceService)
    r.allGet(IBlogCommentService)
    r.allGet(ICollaboratorService)
    r.allGet(IURLInfoService)
    r.allGet(IBlogSeoService)
コード例 #5
0
ファイル: actions.py プロジェクト: aaron-goshine/SDLive-Blog
def registerAclLivedeskView():
    r = rightLivedeskView()
    r.addActions(menuAction(), subMenuAction(), modulesAction(),
                 modulesArchiveAction(), dashboardAction())
    r.allGet(IBlogTypeService, IBlogTypePostService, IPersonService,
             IPersonIconService)
    r.allGet(IBlogService,
             IBlogCollaboratorService,
             IBlogPostService,
             filter=filterCollaboratorBlog())
    r.allGet(ISourceService)
    r.add(ref(IBlogService).getAll, filter=filterAuthenticated())
    r.allGet(IBlogPostService, filter=filterClosedBlog())
    r.allGet(IPostVerificationService)
    r.allGet(ILanguageService)
    r.allGet(IRoleService)
    r.allGet(IPostService)
    r.allGet(IPostTypeService)
    r.allGet(ISourceTypeService)
    r.allGet(IVerificationStatusService)
    r.allGet(IUserTypeService)
    r.allGet(IBlogMediaTypeService)
    r.allGet(IRightService)
    r.allGet(IRightTypeService)
    r.allGet(IVersionService)
    r.allGet(IMetaDataService)
    r.allGet(IUserService)
    r.allGet(IUserRbacService)
    r.allGet(IGeneralSettingService)
    r.allGet(IBlogSourceService)
    r.allGet(IBlogCommentService)
    r.allGet(ICollaboratorService)
    r.allGet(IURLInfoService)
    r.allGet(IBlogSeoService)
コード例 #6
0
ファイル: actions.py プロジェクト: Halfnhav4/Superdesk
def registerAclLivedeskView():
    r = rightLivedeskView()
    r.addActions(menuAction(), subMenuAction(), modulesAction(), modulesArchiveAction(), dashboardAction())
    r.allGet(IBlogTypeService, IBlogTypePostService, IPersonService, IPersonIconService)
    r.allGet(IBlogService, IBlogCollaboratorService, IBlogPostService, filter=filterCollaboratorBlog())
    r.allGet(ISourceService)
    r.add(ref(IBlogService).getAll, filter=filterAuthenticated())
コード例 #7
0
ファイル: actions.py プロジェクト: finid/Superdesk
def registerAclLivedeskUpdate():
    r = rightLivedeskUpdate()
    r.allGet(IBlogSyncService)
    r.add(ref(IBlogSyncService).insert,
          ref(IBlogSyncService).update,
          filter=filterAuthenticated())
    r.add(ref(IBlogSyncService).delete)
    r.addActions(menuAction(), subMenuAction(), modulesAction(),
                 modulesEditAction(), modulesBlogEditAction(),
                 dashboardAction(), modulesAddAction(),
                 modulesConfigureAction(), modulesManageCollaboratorsAction(),
                 modulesManageFeedsAction(), modulesBlogPublishAction(),
                 modulesBlogPostPublishAction())
    r.all(IBlogService, IBlogPostService, IBlogCollaboratorService,
          IBlogThemeService, IBlogTypePostService, IBlogTypeService,
          IPersonService, IPersonIconService, ISourceService,
          ICollaboratorService)
コード例 #8
0
ファイル: actions.py プロジェクト: finid/Superdesk
def registerAclManageOwnPost():
    r = rightManageOwnPost()
    r.addActions(menuAction(), subMenuAction(), modulesAction(),
                 modulesEditAction(), dashboardAction())
    r.allGet(IBlogService, filter=filterCollaboratorBlog())
    r.allGet(ISourceService)
    r.add(ref(IBlogPostService).delete)
    # TODO: add: filter=filterOwnPost(), also the override crates problems, this should have been on IPostService
    r.add(ref(IBlogPostService).insert,
          ref(IBlogPostService).update,
          filter=filterCollaboratorBlog())
    r.add(ref(IBlogPostService).publish,
          ref(IBlogPostService).insertAndPublish,
          ref(IBlogPostService).unpublish,
          ref(IBlogPostService).reorder,
          ref(IBlogCollaboratorService).addCollaborator,
          ref(IBlogCollaboratorService).addCollaboratorAsDefault,
          filter=filterAdminBlog())
    r.add(ref(IBlogPostService).update)  # TODO: add: filter=filterOwnPost()
コード例 #9
0
ファイル: actions.py プロジェクト: finid/Superdesk
def registerAclLivedeskView():
    r = rightLivedeskView()
    r.addActions(menuAction(), subMenuAction(), modulesAction(),
                 modulesArchiveAction(), dashboardAction())
    r.allGet(IBlogTypeService, IBlogTypePostService, IPersonService,
             IPersonIconService)
    r.allGet(IBlogService,
             IBlogCollaboratorService,
             IBlogPostService,
             filter=filterCollaboratorBlog())
    r.allGet(ISourceService)
    r.add(ref(IBlogService).getAll, filter=filterAuthenticated())
コード例 #10
0
def updateAlternates():
    acl.aclAlternate(
        ref(IActionManagerService).getAll,
        ref(IUserActionService).getAll)
コード例 #11
0
ファイル: service.py プロジェクト: AtomLaw/Ally-Py
def updateBindersForAssignToRole():
    binders().append(intercept(ref(IRightService).insert, handlers=proxyAssignRoleToRigh))
コード例 #12
0
ファイル: actions.py プロジェクト: robchrstr/Superdesk
def updateCaptchaForComments():
    captcha().add(ref(IBlogCommentService).addComment)
コード例 #13
0
def updateCaptchaForComments():
    captcha().add(ref(IBlogCommentService).addComment)
コード例 #14
0
ファイル: actions.py プロジェクト: AtomLaw/Superdesk
def registerAclUserUpdate():
    r = rightUserUpdate()
    r.add(ref(IMetaDataUploadService).insert, filter=filterAuthenticated())
コード例 #15
0
ファイル: actions.py プロジェクト: aaron-goshine/SDLive-Blog
def registerAclLivedeskUpdate():
    r = rightLivedeskUpdate()
    r.allGet(IBlogSyncService)
    r.add(ref(IBlogSyncService).insert,
          ref(IBlogSyncService).update,
          filter=filterAuthenticated())
    r.add(ref(IBlogSyncService).delete)
    r.addActions(menuAction(), subMenuAction(), modulesAction(),
                 modulesEditAction(), modulesBlogEditAction(),
                 dashboardAction(), modulesAddAction(),
                 modulesConfigureAction(), modulesManageCollaboratorsAction(),
                 modulesManageFeedsAction(), modulesBlogPublishAction(),
                 modulesBlogPostPublishAction())
    r.all(IBlogService, IBlogPostService, IBlogCollaboratorService,
          IBlogThemeService, IBlogTypePostService, IBlogTypeService,
          IPersonService, IPersonIconService, ISourceService,
          ICollaboratorService)
    r.add(ref(IBlogPostService).insert,
          ref(IBlogPostService).update,
          ref(IBlogPostService).publish,
          ref(IBlogPostService).insertAndPublish,
          ref(IBlogPostService).unpublish,
          ref(IBlogPostService).reorder,
          ref(IBlogPostService).delete,
          filter=filterClosedBlog())
    r.add(ref(IBlogPostService).update)
    r.add(ref(IPostVerificationService).update)
    r.add(
        ref(IBlogSeoService).insert,
        ref(IBlogSeoService).update,
        ref(IBlogSeoService).delete)
    r.add(
        ref(IBlogSourceService).addSource,
        ref(IBlogSourceService).deleteSource)
    r.add(
        ref(IUserRbacService).unassignRole,
        ref(IUserRbacService).assignRole,
        ref(IUserRbacService).unassignRight,
        ref(IUserRbacService).assignRight)
コード例 #16
0
ファイル: acl.py プロジェクト: AtomLaw/Superdesk
def updateFilteredDefaults():
    defaultRight().allGet(IUserActionService, filter=filterAuthenticated())
    # Provides access for performing login
    defaultRight().add(ref(IAuthenticationService).requestLogin, ref(IAuthenticationService).performLogin)
    # Provides read only access to the logged in user
    defaultRight().add(ref(IUserService).getById, filter=filterAuthenticated())
コード例 #17
0
ファイル: actions.py プロジェクト: patriciagarcia/Live-Blog
def registerAclUserUpdate():
    r = rightUserUpdate()
    r.add(ref(IMetaDataUploadService).insert, filter=filterAuthenticated())
コード例 #18
0
ファイル: acl.py プロジェクト: AtomLaw/Superdesk
def updateAlternates():
    acl.aclAlternate(ref(IActionManagerService).getAll, ref(IUserActionService).getAll)
コード例 #19
0
ファイル: actions.py プロジェクト: Eduardoescamilla/Live-Blog
def registerAclLivedeskUpdate():
    r = rightLivedeskUpdate()
    r.allGet(IBlogSyncService)
    r.add(ref(IBlogSyncService).insert, ref(IBlogSyncService).update, filter=filterAuthenticated())
    r.add(ref(IBlogSyncService).delete)
    r.addActions(menuAction(), subMenuAction(), modulesAction(), modulesEditAction(), modulesBlogEditAction(),
                 dashboardAction(), modulesAddAction(), modulesConfigureAction(), modulesManageCollaboratorsAction(), modulesManageFeedsAction(),
                 modulesBlogPublishAction(), modulesBlogPostPublishAction())
    r.all(IBlogService, IBlogPostService, IBlogCollaboratorService, IBlogThemeService, IBlogTypePostService, IBlogTypeService,
          IPersonService, IPersonIconService, ISourceService, ICollaboratorService)
    r.add(ref(IBlogPostService).insert, ref(IBlogPostService).update, ref(IBlogPostService).publish,
          ref(IBlogPostService).insertAndPublish, ref(IBlogPostService).unpublish, ref(IBlogPostService).reorder,
          ref(IBlogPostService).delete, filter=filterClosedBlog())
    r.add(ref(IBlogPostService).update)
    r.add(ref(IPostVerificationService).update)
    r.add(ref(IBlogSeoService).insert, ref(IBlogSeoService).update)
    r.add(ref(IBlogSourceService).addSource, ref(IBlogSourceService).deleteSource)
    r.add(ref(IUserRbacService).unassignRole, ref(IUserRbacService).assignRole, ref(IUserRbacService).unassignRight, ref(IUserRbacService).assignRight)