#147 open
Marko Seppä

Add UI for setting roles/permissions

Reported by Marko Seppä | October 28th, 2008 @ 12:31 PM

Section permissions settings do not work due to new permission handling with adva_rbac.

Write test for it and fix it.

Comments and changes to this ticket

  • Sven Fuchs

    Sven Fuchs January 9th, 2009 @ 01:58 PM

    • Milestone cleared.
    • State changed from “new” to “open”
    • Assigned user changed from “Sven Fuchs” to “Marko Seppä”
    • Title changed from “Section permissions settings bug” to “Add UI for setting roles/permissions”

    We currently can not set any permissions, actually.

    Therefor changing the title here.

  • Marko Seppä
  • Marko Seppä

    Marko Seppä June 18th, 2009 @ 04:42 PM

    Added to product backlog.

  • VictoriaElliott

    VictoriaElliott March 21st, 2022 @ 02:24 PM

    Well quite helping and useful information for the various people who might looking for the writing. I hope after the forum blog the number of people is able to grab the educational Dissertation-Service.org help from professionals. Really admire your help please do share more.

  • Alisha Dean

    Alisha Dean October 3rd, 2022 @ 12:50 PM

    Assignment Writing Service In Uk

    By using the code below you can easily create role and permissions .

    public function store(Request $request)
    { $this->validate(request(), [ 'email' => 'string|email|max:255', 'companyrole' => 'string|min:3', 'companypermissions' => 'string|min:3', ]);

        $roleExists = Role::roleExists(request('companyrole'));
        $permissionExists = Permission::permissionExists(request('companypermissions'));
    
        if ($roleExists === true && $permissionExists === true) {
    
            $userExists = User::userExists(request('email'));
    

    // dd($userExists); if ($userExists) {

                    $companyHasAdministrator = Company::CompanyHasAdministratorRole(request('companyrole'));
    //                dd($companyHasAdministrator);
                    if ($companyHasAdministrator === false) {
    

    // dd($userExists); $role = Role::currentRole(request('companyrole')); // dd($role); $permission = Permission::currentPermission(request('companypermissions'));

                        $userExists->roles()->attach($role);
                        $role->givePermissionTo($permission);
    
                        flash('Thank you for adding roles and permissions.')->success();
    
                        return back();
    
                    } else {
    
                        flash('This company already has an administrator. Please select another role for that user.')->warning();
    
                        return back();
                    }
    
                } else {
    
                    flash('No one with that email exists. Would you please invite them in the Invitations Center below? After they accept you may add their roles and permissions.')->warning();
    
                    return back();
    
                }
    
    
        } else {
    
            flash('You have been reported to the FBI.')->warning();
    
            return back();
        }
    
  • foldnslideaefold

    foldnslideaefold October 10th, 2022 @ 06:18 AM

    There are numerous reasons why bi-overlay entryways are a https://foldnslideaes.blogspot.com/
    perfect home improvement arrangement yet here are only a portion of the phenomenal benefits.Whether open or shut, bi-overlap entryways permit most extreme daylight into your home transforming a regularly dull room into a space loaded with get-up-and-go and life where you need to spend more time.With bi-crease entryways you don't have to truly be outside to feel that feeling of opportunity, as not at all like ordinary sliding entryways they overlap directly back significance there is more noteworthy space. You experience the solace of being inside while having the option to make the most of your open air space.

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<p>Cutting edge cms, blog, wiki, forum ... plattform.</p>

<p>Find the code on <a href="http://github.com/svenfuchs/adva_cms/tree/master">GitHub: adva cms</a></p>

<p>Part of the business application framework <a href="http://www.advabest.org/">adva best</a>.</p>

People watching this ticket

Tags

Pages