from zou.app.models.custom_action import CustomAction

from .base import BaseModelsResource, BaseModelResource


class CustomActionsResource(BaseModelsResource):

    def __init__(self):
        BaseModelsResource.__init__(self, CustomAction)


class CustomActionResource(BaseModelResource):

    def __init__(self):
        BaseModelResource.__init__(self, CustomAction)

from zou.app.models.custom_action import CustomAction

from .base import BaseModelsResource, BaseModelResource


class CustomActionsResource(BaseModelsResource):

    def __init__(self):
        BaseModelsResource.__init__(self, CustomAction)

    def check_permissions(self):
        return True


class CustomActionResource(BaseModelResource):

    def __init__(self):
        BaseModelResource.__init__(self, CustomAction)

Allow anyone to read custom actions
Allow anyone to read custom actions

  from zou.app.models.custom_action import CustomAction
  
  from .base import BaseModelsResource, BaseModelResource
  
  
  class CustomActionsResource(BaseModelsResource):
  
      def __init__(self):
          BaseModelsResource.__init__(self, CustomAction)
  
+     def check_permissions(self):
+         return True
+ 
  
  class CustomActionResource(BaseModelResource):
  
      def __init__(self):
          BaseModelResource.__init__(self, CustomAction)
  
Allow anyone to read custom actions
## Code Before:
from zou.app.models.custom_action import CustomAction

from .base import BaseModelsResource, BaseModelResource


class CustomActionsResource(BaseModelsResource):

    def __init__(self):
        BaseModelsResource.__init__(self, CustomAction)


class CustomActionResource(BaseModelResource):

    def __init__(self):
        BaseModelResource.__init__(self, CustomAction)

## Instruction:
Allow anyone to read custom actions
## Code After:
from zou.app.models.custom_action import CustomAction

from .base import BaseModelsResource, BaseModelResource


class CustomActionsResource(BaseModelsResource):

    def __init__(self):
        BaseModelsResource.__init__(self, CustomAction)

    def check_permissions(self):
        return True


class CustomActionResource(BaseModelResource):

    def __init__(self):
        BaseModelResource.__init__(self, CustomAction)
