Bharat Mediratta
3d2fc86604
Permission only function on albums.
2008-12-16 00:30:05 +00:00
Bharat Mediratta
2f8b4df0f5
Protect menus and blocks against the fact that we don't have an item
...
on tag pages.
2008-12-15 21:23:00 +00:00
Tim Almdal
1d3e1484a7
The admin high level menu is shown if the active user is not a guest. Other sub menus depend on the appropriate level of access
2008-12-15 19:51:49 +00:00
Tim Almdal
b2107c3734
1) Move the deletion of the vars into module::delete helper
...
2) remove the watermark_add_form.html.php
2008-12-15 03:49:48 +00:00
Bharat Mediratta
2812f34732
Rename default_admin to admin_default.
2008-12-15 01:55:07 +00:00
Felix Rabinovich
c46bd97407
load admin subpages AJAXy way
2008-12-14 21:50:10 +00:00
Tim Almdal
fc1e7a9333
1) fix Forge_Group to display the label (will raise a bug with Kohana)
...
2) Change form.html.php to use the group label instead of the name
3) Converted the add photo to explicity set the label of the field (new coding standard)
2008-12-14 03:19:31 +00:00
Felix Rabinovich
13ad40ab5c
Created admin controller and made admin obey admin theme settings
2008-12-14 02:23:37 +00:00
Bharat Mediratta
af8c74f612
Fix a bug where parent permissions were not getting inherited to newly
...
created albums and photos.
2008-12-13 20:06:20 +00:00
Bharat Mediratta
8ba5ea3cf8
Make sure that access::can fails if the item is not loaded
2008-12-13 19:49:33 +00:00
Tim Almdal
80792d4fb1
Set the resize and thumbnail maximum dimension into the module vars table
2008-12-13 05:01:12 +00:00
Tim Almdal
7b7bf37e67
Set thumbnails to 200x200 and resizes to 640x640 and let the Image::resize method pick the right aspect ratio
2008-12-13 04:12:40 +00:00
Tim Almdal
942dbe175c
Remove a couple of todo's by store the "theme name", "admin theme name" and "page size" in the vars table and initializing when the core module is installed
2008-12-12 19:39:38 +00:00
Bharat Mediratta
e12451cf10
Refaactor module::install() and module::uninstall() out of the
...
scaffolding and unit test code so that we can use it consistently.
This fixes an issue where adding a module was not refreshing the
statically cached module list causing the test framework to break.
2008-12-12 08:41:48 +00:00
Bharat Mediratta
7e4d13d9bd
Point the Site Admin link at the wireframe for now.
2008-12-12 08:00:07 +00:00
Bharat Mediratta
597cc0013c
Make the error handler public, else it can't be called from outside
...
this class (which is the most likely scenario).
2008-12-12 07:55:19 +00:00
Bharat Mediratta
79226f0a8f
Cache modules and module_names when we call load_modules so that we don't have to check every time
2008-12-12 07:53:54 +00:00
Bharat Mediratta
187f28a6b3
Yet another deal with bootstrapping when we've got no core install yet.
2008-12-12 07:42:26 +00:00
Bharat Mediratta
e65f8d5022
Remove head() for now.
2008-12-12 07:25:43 +00:00
Bharat Mediratta
54d27238f3
Fix module::_core_installed() hack.
2008-12-12 07:09:00 +00:00
Bharat Mediratta
a3142246e4
Move the view permission cache directly into the item table for efficiency. Unit tests ftw!
2008-12-12 06:54:48 +00:00
Bharat Mediratta
35067cbced
Expand on our core-is-installed checking code.
2008-12-12 01:22:03 +00:00
Bharat Mediratta
2cf3233f54
Get rid of all pseudo users and pseudo groups, while preserving all
...
other functionality. This makes our user/group and access code
fully consistent.
2008-12-12 00:59:30 +00:00
Bharat Mediratta
0f41cab732
Guard load_modules() against the case that the database isn't installed.
2008-12-11 23:10:42 +00:00
Tim Almdal
bd992a97b2
Remove the options menus from the albums and photo pages and move to the site menu
2008-12-11 21:27:16 +00:00
Bharat Mediratta
914164d5eb
Split _update_access_cache into two functions separating view from
...
non-view. This is a step along the path towards moving the view
access cache into the item model.
2008-12-11 19:06:40 +00:00
Tim Almdal
1af3b8e100
Changes to the Menu.php:
...
1) separate the classes that are generated by the Menu class from what is used for the rendering. The classes that are generated are gMenu, gMenuElement, and gMenuDialog for the Menu, Menu_Element and MenuDialog classes respectively.
2) Changed the ui.init.js to add the appropriate rendering classes to the above classes. All gMenu elements have the sf-menu class added. All elements of class gMenuDialog have the gDialogLink class added.
3) Use Superfish for the menus so they now float properly.
2008-12-11 19:01:47 +00:00
Tim Almdal
f3d40c02ec
A a script block to the <head> of the page that creates a javascript variable (base_url) such that javascript on the page can find the base url of the site in order to generate ajax callbacks.
2008-12-11 18:53:54 +00:00
Tim Almdal
e84a0ebe46
Change the name of the implmentation of module parameters to module vars
2008-12-11 16:06:22 +00:00
Tim Almdal
52ed3f11fd
Fix problem with access::can, where the $item->id was being passed to the access_group::can method.
2008-12-10 22:19:39 +00:00
Tim Almdal
7e5935d532
Create a module parameter table. This will be useful if a module wants to store information, but is not enough to warrant a table of its own
2008-12-10 19:44:58 +00:00
Bharat Mediratta
18a6614a11
Change all access API methods to take ORMs instead of ids. This will
...
minimize reloading objects from the database.
2008-12-10 07:05:49 +00:00
Bharat Mediratta
09364348c7
Remove navigation_top() and navigation_bottom() as they're subsumed by the new menu code
2008-12-10 04:25:20 +00:00
Bharat Mediratta
f198331065
Put profiler into page_bottom()
2008-12-10 04:23:48 +00:00
Bharat Mediratta
4a0e4b798e
Check view permissions before allowing view access to albums/photos.
2008-12-09 10:14:09 +00:00
Bharat Mediratta
e62103b8d9
Move code to delete users and add/remove users from groups into the
...
model.
2008-12-09 08:47:30 +00:00
Bharat Mediratta
e3ad42a276
Add access::can() which verifies that the user belongs to a group that has the
...
given permission.
2008-12-09 00:02:20 +00:00
Bharat Mediratta
bd3a472be7
Rename access::can() to access::group_can()
2008-12-08 10:46:53 +00:00
Bharat Mediratta
b878ed174d
Refactor Menu code to create allow you to create menus using a
...
chainable factory interface and retrieve them by ids. Streamlined the
HTML creation code a little bit in the process, moved the basic menu
functionality into Theme_View and created the option to have different
menus other than site_navigation().
2008-12-08 06:14:34 +00:00
Bharat Mediratta
736829490a
Minor cleanups.
2008-12-08 04:50:56 +00:00
Bharat Mediratta
528a48a96e
Minor cleanups.
2008-12-08 04:47:31 +00:00
Bharat Mediratta
73496de94f
Tighten up head()
2008-12-08 04:39:21 +00:00
Tim Almdal
ee2299d6d0
Restructure Menu processing to respect the differnent types of menu items (Menu's, Menu_Link, Menu_Dialog)
2008-12-08 00:23:33 +00:00
Tim Almdal
3449827c5a
Change the menu processing to add the gDialogLink class if the url starts with a #. this results in a modal dialog box being opened. At this point the url is not retrieved and the text just shows up in the dialog box... need to look at that
2008-12-07 22:10:23 +00:00
Tim Almdal
954fcf0342
Merge gallery3/branches/menus back into gallery3/trunk
2008-12-07 19:45:46 +00:00
Tim Almdal
b409a376f3
1) Change the photo description field to a text area
...
2) Added a 'type' data element to both forge/Form_Textarea and forge/Form_Upload
The second change allows the drawForm to correctly render both of these elements enclosed in a <li>...</li> html blocl
2008-12-07 17:09:21 +00:00
Bharat Mediratta
5d23a6515d
Finish writing unit tests for Access. No bugs found!
2008-12-07 10:56:44 +00:00
Bharat Mediratta
bf7ab8904a
Change ORM_MPTT::add_to_parent() to take an ORM instead of an id so
...
that it's consistent with ORM_MPTT::move_to()
2008-12-07 08:46:44 +00:00
Tim Almdal
fb6e22e145
Implemented photo::_get_photo_add(). You need to create the var/uploads directory and make it writable by the server. The location of the temporary upload directory is specified in config/upload.php
2008-12-06 21:14:36 +00:00
Tim Almdal
8d1790a0b4
* Add a moveTo unit test
...
* Pass the module::event(..., $data) by reference to the handlers
2008-12-05 04:56:33 +00:00