Editor Permissions

Post Reply
User avatar
oldteacher
Sr. Bludit
Posts: 37
Joined: Mon Jan 25, 2016 5:46 pm

I have been absent for few months and happy to see Bludit still alive and even the beat 2, awesome! Going to try and get approval to use Bludit on our school LAN for classroom blogs:)

Trying out the demo and add users option. See when adding a user with "editor" privileges and once logged as editor, all the links still show. They of course give permission errors (like settings, plugins, etc).

Is there a simple way to disable links that editors cannot access and only show ones they can access?

Many thanks.
User avatar
Edi
Site Admin
Posts: 3121
Joined: Sun Aug 09, 2015 5:01 pm
Location: Zurich
Has thanked: 54 times
Been thanked: 77 times
Contact:

This be possible by modifying the template index.php of the admin theme.
Clickwork - Websites mit Bludit | Planet Bludit - Tipps und Snippets
User avatar
oldteacher
Sr. Bludit
Posts: 37
Joined: Mon Jan 25, 2016 5:46 pm

Ok, thanks. Did look at that but seems it removes the links for logged in admin also.

Cheers.
User avatar
Edi
Site Admin
Posts: 3121
Joined: Sun Aug 09, 2015 5:01 pm
Location: Zurich
Has thanked: 54 times
Been thanked: 77 times
Contact:

Not if you set conditions.
Clickwork - Websites mit Bludit | Planet Bludit - Tipps und Snippets
User avatar
oldteacher
Sr. Bludit
Posts: 37
Joined: Mon Jan 25, 2016 5:46 pm

Thanks. Was just trying to get as much info together before submitting request to the school IT department. Will just let them decide if can use Bludit as is.

Cheers
User avatar
Edi
Site Admin
Posts: 3121
Joined: Sun Aug 09, 2015 5:01 pm
Location: Zurich
Has thanked: 54 times
Been thanked: 77 times
Contact:

You can get the role of a user with the following:

Code: Select all

$User->role()
With this you can set an if-condition.
Clickwork - Websites mit Bludit | Planet Bludit - Tipps und Snippets
User avatar
diego
Site Admin
Posts: 773
Joined: Sat May 16, 2015 2:53 pm
Been thanked: 1 time
Contact:

I need to work on the admin panel for users who are not admin.
I like the idea to use Bludit on your school :D
Regards
User avatar
oldteacher
Sr. Bludit
Posts: 37
Joined: Mon Jan 25, 2016 5:46 pm

Thank you for the info!

Yes, I would like to see Bludit working on our school network. It is perfect platform for students to use for blogging:) The API option would come in very handy to feature posts on main page.

I cannot of course just install Bludit on network, has to be approved by the IT department. Submitted yesterday but they move like our US government, very slow...

Look forward to seeing more about V2.

Thanks again.
User avatar
diego
Site Admin
Posts: 773
Joined: Sat May 16, 2015 2:53 pm
Been thanked: 1 time
Contact:

If you are going to start from scratch, is good idea to start with Bludit 2.0 beta 1.
And the API is one of my priority.
Regards
Diego
Post Reply