Giter VIP home page Giter VIP logo

permissions's Introduction

Permissions

Codacy Badge StyleCI License Total Downloads Latest Stable Version

Permissions dependency for Laravel Enso

This package works exclusively within the Enso ecosystem.

The front end assets that utilize this api are present in the ui package.

For live examples and demos, you may visit laravel-enso.com

Screenshot

Installation, Configuration & Usage

Be sure to check out the full documentation for this package available at docs.laravel-enso.com

Contributions

are welcome. Pull requests are great, but issues are good too.

License

This package is released under the MIT license.

permissions's People

Contributors

abdullahiabdulkabir avatar aocneanu avatar codacy-badger avatar gandesc avatar gitmanuela avatar pongraczi avatar raftx24 avatar stylecibot avatar vmcvlad avatar y0net avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

permissions's Issues

Create Resource form always creating all resource even switch off unneccesary permissions

This is a bug request.

Prerequisites

  • Are you running the latest version?
  • Are you reporting to the correct repository?
  • Did you check the documentation?
  • Did you perform a cursory search?

Description

I have to create only selectoptions permission. In Create Resource form only one field checked. but after saving it will create all unneccesary permissions.

Steps to Reproduce

Expected behavior

Actual behavior

Table search & role configure broken (not fully migrated?)

This is a bug.

Prerequisites

  • Are you running the latest version?
  • Are you reporting to the correct repository?
  • Did you check the documentation?
  • Did you perform a cursory search?

Description

The search in permissions seems to be broken; reproduced on https://www.laravel-enso.com/system/permissions/

image

image

Steps to Reproduce

try to make any search on https://www.laravel-enso.com/system/permissions/

Expected behavior

Correct filtering

Actual behavior

blank result set

Role configurator bug

There is a problem in the B/E when building the permission object when we have permission groups from the same parent with different different levels of depth

User-level permission expansion/override

This is a feature request.

Prerequisites

  • Are you running the latest version?
  • Are you reporting to the correct repository?
  • Did you check the documentation?
  • Did you perform a cursory search?

Description

The bulk of our permissions are defined on a general role basis; however (as we have a granular rollout of new features, amongst other reasons) we need to define/override certain permissions on a user-level

Proposal

Base

Add a permission_user pivot that is also checked along with permission_role to verify permission.

This includes introducing a permissions() object on the user directly; that will check the role's permissions too (to remain DRY)

TODO:

  • add permissions() relationship in the User Model (similar to the one in the Role Model)
  • write accompanying db migration (new permission_user table)
  • update from role->permissions() to user-based required in:
    • menumanager: MenuTree's setPermissions()
    • core: AppState's routes()
    • searchable: Finder's permissions()
    • permissionmanager: AuthServiceProvider's boot() (access-route)
  • Investigate implications for ConfigWriter (in rolemanager)

Expansion/optional (depending on your feedback)

  • Add a flag to above pivot indicating if it's a allow or deny (to allow overriding in both directions.
  • implement permission-edit-UI coupled to user (our implementation only requires code-wise changes; but since the UI is already there for roles it shouldn't be a big extra to implement this; making the feature more solid for more use cases)

Note that I'll be starting on this first thing next week, hopefully as a contribution to the framework as I believe there's many use cases for this (depending on your comments, will otherwise just override what I need)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.